WordPress.org

Make WordPress Core

Changeset 24455


Ignore:
Timestamp:
06/20/13 16:45:45 (10 months 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.