Commit e1de7e9
committed
Themes: Improve type checking in
Follow up to [61108].
Change type handling to ensure that falsey string values like `0` are correctly handled. Improves readability of underlying code by consolidating type checks and passing resulting array to the `wp_title_parts` filter.
Props tobiasbg, sabernhardt, sirlouen, wildworks, joedolson, mukesh27.
Fixes #61352.
git-svn-id: https://develop.svn.wordpress.org/trunk@61198 602fd350-edb4-49c9-b593-d223f7449a82wp_title.1 parent 03171e1 commit e1de7e9
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1424 | 1424 | | |
1425 | 1425 | | |
1426 | 1426 | | |
1427 | | - | |
1428 | | - | |
1429 | | - | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
1430 | 1436 | | |
1431 | 1437 | | |
1432 | 1438 | | |
| |||
1436 | 1442 | | |
1437 | 1443 | | |
1438 | 1444 | | |
1439 | | - | |
| 1445 | + | |
1440 | 1446 | | |
1441 | 1447 | | |
1442 | 1448 | | |
| |||
0 commit comments