[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 03:05:16 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:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by adamsilverstein):

 this patch adds the WP_Error return and updates the phpdoc. also i added
 some missing space to post-template.php, but now that i am looking at that
 file i see lots of other spots where coding practice spaces are missing.
 surprised to see that, but maybe doesn't belong in this ticket... going to
 fix and submit separately.

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


More information about the wp-trac mailing list