Array offset null
-
It appears with the recent update to WordPress core 6.1 (running PHP8.1) there seems to be a few error/warning notifications around validating for null offsets. I’ve identified these issues down to 3 specific files, and the same if statement within them, I would suggest adding a null validation prior to the check to resolve the issues. Here are the files and the lines I would add the validations before.
limit_offset.php – line 44
//Suggest adding initial variable validation if ( $wp_nav_plus_limit_offset_options === null ){ return $items; }
menu_segment.php – line 43
//Suggest adding initial variable validation if ( $wp_nav_plus_menu_segment_options === null ){ return $items; }
start_depth.php – line 54
//Suggest adding initial variable validation if ( $wp_nav_plus_start_depth_options === null ){ return $items; }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Array offset null’ is closed to new replies.