[wp-trac] [WordPress Trac] #23255: get_post_format() can throw PHP notice and doesn't return WP_Error

WordPress Trac noreply at wordpress.org
Tue Jan 22 17:58:02 UTC 2013


#23255: get_post_format() can throw PHP notice and doesn't return WP_Error
------------------------------+------------------
 Reporter:  azaozz            |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.6
Component:  Warnings/Notices  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |
------------------------------+------------------

Comment (by azaozz):

 Agree with @nacin.

 The discussion started in
 http://core.trac.wordpress.org/ticket/23198#comment:10 as this was
 discovered there. Initially get_post_format() was returning WP_Error
 coming from the lower level API [15777]. Later on we improved it to use
 better low level API that wasn't returning WP_Error any more [16319]. So
 for over two years this function has been returning either `false` or a
 string.

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


More information about the wp-trac mailing list