Make WordPress Core


Ignore:
Timestamp:
02/17/2006 12:57:10 AM (18 years ago)
Author:
ryan
Message:

Dynamic menu reparenting. fixes #2257

File:
1 edited

Legend:

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

    r3517 r3536  
    1212    if (( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"';
    1313   
    14     if ( current_user_can($item[1]) ) {
     14    if ( !empty($submenu[$item[2]]) || current_user_can($item[1]) ) {
    1515        if ( file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") )
    1616            echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>";
Note: See TracChangeset for help on using the changeset viewer.