mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 21:30:26 +00:00
Hold off on menu cleanup until next release. There be dragons.
git-svn-id: https://develop.svn.wordpress.org/trunk@4480 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3,13 +3,7 @@
|
||||
$self = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
|
||||
$self = preg_replace('|^.*/plugins/|i', '', $self);
|
||||
|
||||
foreach ( $submenu as $parent => $subpages ) {
|
||||
foreach ( $subpages as $page ) {
|
||||
// 0 menu title, 1 cap, 2 file or slug, 3 page title
|
||||
if ( $self == $page[2] )
|
||||
$parent_file = $parent;
|
||||
}
|
||||
}
|
||||
get_admin_page_parent();
|
||||
|
||||
foreach ($menu as $item) {
|
||||
$class = '';
|
||||
@@ -68,4 +62,4 @@ endif;
|
||||
|
||||
do_action('admin_notices');
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user