[wp-trac] [WordPress Trac] #61352: PHP deprecation warning in /wp-includes/general-template.php

WordPress Trac noreply at wordpress.org
Thu Apr 24 14:33:24 UTC 2025


#61352: PHP deprecation warning in /wp-includes/general-template.php
--------------------------+---------------------
 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:
--------------------------+---------------------
Changes (by sabernhardt):

 * milestone:  Awaiting Review => 6.9


Comment:

 PR 8729 removes the deprecation notice and passes the GitHub tests.

 I'll also suggest an alternative in case it //might// be better:
 {{{
         // If there is a post.
         if ( is_single() || ( is_home() && ! is_front_page() ) || (
 is_page() && ! is_front_page() ) ) {
                 $title = single_post_title( '', false );
                 if ( empty( $title ) ) {
                         $title = '';
                 }
         }
 }}}

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


More information about the wp-trac mailing list