Commit 79b5b5d
committed
Themes: Prevent PHP notice thrown in
The value passed to the `wp_title_parts` filter is run through `explode()`, but can be empty. This throws a PHP notice.
If value of `$title` is empty, return an empty array without exploding.
Props nexbridge, dhruvang21, tussendoor, michaelreetz, o-o, beee, sabernhardt, sirlouen, nimeshatxecurify, westonruter, sirlouen.
Fixes #61352.
git-svn-id: https://develop.svn.wordpress.org/trunk@61108 602fd350-edb4-49c9-b593-d223f7449a82wp_title_parts.1 parent 5a8c207 commit 79b5b5d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
1439 | | - | |
| 1439 | + | |
1440 | 1440 | | |
1441 | 1441 | | |
1442 | 1442 | | |
| |||
0 commit comments