[wp-trac] [WordPress Trac] #61352: PHP deprecation notice in wp_title()
WordPress Trac
noreply at wordpress.org
Sun Nov 9 07:44:13 UTC 2025
#61352: PHP deprecation notice in wp_title()
-----------------------------------+------------------------
Reporter: nexbridge | Owner: joedolson
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.9
Component: Themes | Version: 6.5.5
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------------
Changes (by sabernhardt):
* keywords: has-patch => has-patch 2nd-opinion
Comment:
`wp_title()` already used `! empty()` in [https://github.com/WordPress
/wordpress-develop/blob/6.8.3/src/wp-includes/general-
template.php#L1428-L1430 line 1428] to determine whether it should add a
separator. In the case of the `0` post title, unless you use a filter,
WordPress 6.8 would create a `<title>` like this:
`<title>0Site Title</title>`
If it is worth changing in one part of the function, it should be changed
in both places.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61352#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list