[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
Tue Oct 27 19:58:25 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:  closed
 Priority:  normal                           |   Milestone:  5.6
Component:  Post Formats                     |     Version:  5.5.1
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by helen):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49344" 49344]:
 {{{
 #!CommitTicketReference repository="" revision="49344"
 Post Formats: You have to pass an array of supported post formats.

 This shows a `_doing_it_wrong()` message and also returns false instead of
 true if no array of formats is passed in `add_theme_support()`, avoiding a
 PHP error.

 Post formats maintainership comes full circle. 🙃

 Props Mista-Flo, sproutchris, garrett-eclipse.
 Fixes #51390.
 }}}

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


More information about the wp-trac mailing list