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

WordPress Trac noreply at wordpress.org
Mon Jan 21 22:31:51 UTC 2013


#23255: get_post_format() can throw PHP notice and doesn't return WP_Error
--------------------+--------------------------
 Reporter:  azaozz  |       Type:  defect (bug)
   Status:  new     |   Priority:  normal
Milestone:  3.6     |  Component:  General
  Version:          |   Severity:  normal
 Keywords:          |
--------------------+--------------------------
 The function `get_post_format()` part of the post formats API throws a PHP
 notice when called with non-existing post_ID. It also doesn't return
 WP_Error although most uses in core expect that.

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


More information about the wp-trac mailing list