[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 17:40:47 UTC 2013


#24034: Filtering show_post_format_ui and returning false results in a fatal error
-----------------------------+--------------------------
 Reporter:  tlovett1         |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Post Formats
  Version:  trunk            |   Severity:  normal
 Keywords:  has-patch        |
-----------------------------+--------------------------
 Title says it all. Filtering and returning false results in this error on
 the post edit screen:

 Catchable fatal error: Object of class CLASS_ADDING_FILTER could not be
 converted to string in /srv/www/trunk/wp-admin/edit-form-advanced.php on
 line 409

 My patch simple declares $post_format_options outside of the if statement.
 Since the variable was getting checked with empty() and it wasn't
 initialized, it was passing through the check resulting in a fatal error.

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


More information about the wp-trac mailing list