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

WordPress Trac noreply at wordpress.org
Sat Apr 26 11:01:04 UTC 2025


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

Comment (by neo2k23):

 @sabernhardt you are right it was introduced in php 7.0
 https://www.php.net/manual/en/migration70.new-features.php

 I doubt if one is interested in false doing it wrongs which also could be
 the case and as we have now when f.e. one sets a static blog page.

 I rather see it silenced for all than getting these false incorrect
 deprecated messages. Moreover even if the title is empty the correct one
 is still presented after the filter has ran. Which was the case with the
 static blog page.

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


More information about the wp-trac mailing list