Ticket #23182: includes-menu.php.patch

File includes-menu.php.patch, 450 bytes (added by phill_brown, 4 months ago)

Fixes offset error if separator is first in the admin menu

  • menu.php

     
    156156                        continue; 
    157157                } 
    158158 
    159                 if ( 0 === strpos($top[2], 'separator') ) { // if separator 
     159                if ( 0 === strpos($top[2], 'separator') && $lastorder !== false ) { // if separator 
    160160                        $first = true; 
    161161                        $c = $menu[$lastorder][4]; 
    162162                        $menu[$lastorder][4] = add_cssclass('menu-top-last', $c);