[wp-trac] [WordPress Trac] #61352: PHP deprecation notice in wp_title()

WordPress Trac noreply at wordpress.org
Fri Oct 31 23:21:54 UTC 2025


#61352: PHP deprecation notice in wp_title()
------------------------------+------------------------
 Reporter:  nexbridge         |       Owner:  joedolson
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.9
Component:  Themes            |     Version:  6.5.5
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------------
Changes (by joedolson):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61108" 61108]:
 {{{
 #!CommitTicketReference repository="" revision="61108"
 Themes: Prevent PHP notice thrown in `wp_title_parts`.

 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61352#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list