[wp-trac] [WordPress Trac] #59410: Getting waring related Warning: array_flip() expects parameter 1 to be array

WordPress Trac noreply at wordpress.org
Wed Sep 20 14:23:57 UTC 2023


#59410: Getting waring related Warning: array_flip() expects parameter 1 to be
array
-----------------------------------------------+---------------------------
 Reporter:  sumitsingh                         |       Owner:  (none)
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  Awaiting
                                               |  Review
Component:  Administration                     |     Version:  6.3.1
 Severity:  normal                             |  Resolution:
 Keywords:  has-screenshots close 2nd-opinion  |     Focuses:
                                               |  administration
-----------------------------------------------+---------------------------
Changes (by costdev):

 * keywords:  has-screenshots => has-screenshots close 2nd-opinion
 * focuses:  administration, coding-standards, php-compatibility =>
     administration
 * component:  General => Administration


Comment:

 Thanks for creating this ticket @sumitsingh!

 If a plugin is filtering the menu order and returning an invalid value, I
 think it's okay that PHP shows a warning. The plugin author should see
 this warning and act to resolve the issue.

 Adding `close` and `2nd-opinion`.

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


More information about the wp-trac mailing list