[wp-trac] [WordPress Trac] #56254: PHP Warning: Undefined array key 1 wp-admin\menu-header.php on line 202

WordPress Trac noreply at wordpress.org
Sat Aug 20 14:51:42 UTC 2022


#56254: PHP Warning:  Undefined array key 1 wp-admin\menu-header.php on line 202
----------------------------+------------------------------
 Reporter:  pras.88in       |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  php81           |     Focuses:
----------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => php81
 * component:  General => Administration


Comment:

 Hi and welcome to Trac!

 If you want site support, the support forums would be a better place to
 ask:
 https://wordpress.org/support/forums/

 However, I'll leave this ticket open for now. The undefined key is the
 [https://core.trac.wordpress.org/browser/tags/6.0.1/src/wp-admin/menu-
 header.php#L200 capability for a sub-menu item] in the side admin menu,
 and maybe the condition needs to check whether the key is set/non-empty
 before using `current_user_can()`.

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


More information about the wp-trac mailing list