Ticket #902: manu-patch.diff

File manu-patch.diff, 0.9 kB (added by ringmaster, 3 years ago)
  • wp-admin/menu-header.php

    old new  
    4040else $class = ''; 
    4141 
    4242if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}")) { 
    43         $page_hook = get_plugin_page_hook($item[2], $parent_file); 
    44         if ( $page_hook ) 
     43        $menu_hook = get_plugin_page_hook($item[2], $parent_file); 
     44        if ( $menu_hook ) 
    4545                echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/{$parent_file}?page={$item[2]}'$class>{$item[0]}</a></li>";              
    4646        else 
    4747                echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>";