This repository has been archived by the owner on Dec 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure warnings aren't triggered by no IDs.
Make sure that other plugins that try to filter `the_title` without passing in two parameters don't interfere with the Subtitles plugin. When `the_title` is filtered, two parameters are needed by Subtitles: the title of the post and the post ID. If a custom widget or anything else that uses `the_title` does not provide this, then Subtitles will return a PHP warning. So, set the default ID to null if it hasn't been passed to `the_subtitle` and all should be well.
- Loading branch information
Philip Arthur Moore
committed
Jun 20, 2014
1 parent
1010ca3
commit 7903f4e
Showing
3 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters