Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#62286 new defect (bug)

Trying to access array offset on null

Reported by: kkmuffme's profile kkmuffme Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

PHP notice "Trying to access array offset on null" when doing a wp-admin request with WP CLI --context=admin since we are in eval() and the variables are therefore not in global context
inside
function sort_menu( $a, $b ) {

for return ( $default_menu_order[ $a ] <= $default_menu_order[ $b ] ) ? -1 : 1;

Change History (2)

This ticket was mentioned in PR #7620 on WordPress/wordpress-develop by @kkmuffme.


3 months ago
#1

  • Keywords has-patch added

Fix PHP notice "Trying to access array offset on null" when doing a wp-admin request with CLI since we are in eval() and the variables are therefore not in global context

Trac ticket: https://core.trac.wordpress.org/ticket/62286

This ticket was mentioned in Slack in #core by kkmuffme. View the logs.


3 months ago

Note: See TracTickets for help on using tickets.