Make WordPress Core

Opened 23 months ago

Last modified 23 months ago

#62286 new defect (bug)

Trying to access array offset on null

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

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.


23 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.


23 months ago

Note: See TracTickets for help on using tickets.