[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
Wed Oct 28 15:46:17 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:  SergeyBiryukov
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  5.6
Component:  Post Formats    |     Version:  5.5.1
 Severity:  normal          |  Resolution:
 Keywords:  has-unit-tests  |     Focuses:
----------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:5 SergeyBiryukov]:
 > We should probably add a `_doing_it_wrong()` notice similar to the one
 [source:tags/5.5.1/src/wp-includes/theme.php?marks=2522,2526-2529#L2512
 displayed for 'html5' support]:
 > {{{
 > _doing_it_wrong( "add_theme_support( 'html5' )", __( 'You need to pass
 an array of types.' ), '3.6.1' );
 > }}}

 Looks like there is actually a bug with that notice not being displayed as
 expected, see #51657.

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


More information about the wp-trac mailing list