[wp-trac] [WordPress Trac] #24034: Filtering show_post_format_ui and returning false results in a fatal error

WordPress Trac noreply at wordpress.org
Wed Apr 10 18:04:35 UTC 2013


#24034: Filtering show_post_format_ui and returning false results in a fatal error
------------------------------+--------------------
 Reporter:  tlovett1          |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.6
Component:  Post Formats      |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+--------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch commit
 * milestone:  Awaiting Review => 3.6


Comment:

 Reproduced the error with this snippet:
 {{{
 add_filter( 'show_post_format_ui', '__return_false' );
 $post_format_options = new stdClass;
 }}}

 [attachment:patch-post-format-filter-fix.diff] makes sense to me.

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


More information about the wp-trac mailing list