[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:57:32 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:  Awaiting Review
Component:  Post Formats  |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 An `empty()` check doesn't require the variable to be initialized.

 From the error message, looks like you're redefining the
 `$post_format_options` global with your class.

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


More information about the wp-trac mailing list