[wp-trac] [WordPress Trac] #51390: PHP error: Trying to access array offset on value of type bool in /wp-admin/includes/meta-boxes.php on line 482

WordPress Trac noreply at wordpress.org
Sun Sep 27 18:38:49 UTC 2020


#51390: PHP error: Trying to access array offset on value of type bool in /wp-
admin/includes/meta-boxes.php on line 482
-------------------------------+------------------------------
 Reporter:  sproutchris        |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Post Formats       |     Version:  5.5.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by Mista-Flo):

 * keywords:   => reporter-feedback


Comment:

 Hi there, thanks for your report.

 It's a bit bizarre because you said your theme does not support post
 formats, but the line just before line 142 is:

 {{{
         if ( current_theme_supports( 'post-formats' ) &&
 post_type_supports( $post->post_type, 'post-formats' ) ) :
 }}}

 So it should not go further in this if state if you have not enabled
 theme_supports for post-formats.

 It seems to be an edge-case with thee theme, can you give more information
 about your theme or how to reproduce the issue easily?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51390#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list