[wp-trac] [WordPress Trac] #11435: Notice when requesting post title of non-existent post

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 26 13:17:19 UTC 2009


#11435: Notice when requesting post title of non-existent post
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:  ryan                          
     Type:  defect (bug)  |      Status:  new                           
 Priority:  normal        |   Milestone:  3.0                           
Component:  General       |     Version:  2.9                           
 Severity:  normal        |    Keywords:  has-patch get_the_title tested
--------------------------+-------------------------------------------------
Changes (by hakre):

  * keywords:  has-patch get_the_title => has-patch get_the_title tested


Comment:

 Tested the patch. Does apply clean, works.

 The only change compared to the current behaviour is, that for the case
 $post->post_title was undefined, it now passes an empty string instead of
 NULL to the various filters. IMHO this is a good to go, otherwise we could
 default the title to NULL to gain 100% binary compability.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11435#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list