Make WordPress Core


Ignore:
Timestamp:
06/20/2013 04:45:45 PM (11 years ago)
Author:
markjaquith
Message:

Prevent an offset error if the first menu item is a separator.

props phill_brown. fixes #23182

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/menu.php

    r24048 r24455  
    157157        }
    158158
    159         if ( 0 === strpos($top[2], 'separator') ) { // if separator
     159        if ( 0 === strpos($top[2], 'separator') && false !== $lastorder ) { // if separator
    160160            $first = true;
    161161            $c = $menu[$lastorder][4];
Note: See TracChangeset for help on using the changeset viewer.