Changeset 6621 for trunk/wp-admin/menu-header.php
- Timestamp:
- 01/16/2008 06:48:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu-header.php
r6558 r6621 91 91 <ul id="sidemenu"> 92 92 <?php 93 $side_items = array(); 93 94 foreach ( $menu as $key => $item ) { 94 95 if ( 26 > $key || $key > 40 ) … … 104 105 $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]); 105 106 if ( file_exists(ABSPATH . PLUGINDIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook)) 106 echo "\n\t<li><a href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a> |</li>";107 $side_items[] = "\n\t<li><a href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>"; 107 108 else 108 echo "\n\t<li><a href='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a> |</li>";109 $side_items[] = "\n\t<li><a href='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>"; 109 110 } else if ( current_user_can($item[1]) ) { 110 111 if ( file_exists(ABSPATH . PLUGINDIR . "/{$item[2]}") ) 111 echo "\n\t<li><a href='admin.php?page={$item[2]}'$class>{$item[0]}</a> |</li>";112 $side_items[] = "\n\t<li><a href='admin.php?page={$item[2]}'$class>{$item[0]}</a>"; 112 113 else 113 echo "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a> |</li>";114 $side_items[] = "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a>"; 114 115 } 115 116 } 117 echo implode(" |</li>", $side_items); 118 unset($side_items); 116 119 do_action( 'sidemenu' ); 117 120 ?>
Note: See TracChangeset
for help on using the changeset viewer.