mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 14:47:02 +00:00
Admin functions cleanup, and change how we do titles and parents in the backend
git-svn-id: https://develop.svn.wordpress.org/trunk@4478 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3,7 +3,13 @@
|
||||
$self = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
|
||||
$self = preg_replace('|^.*/plugins/|i', '', $self);
|
||||
|
||||
get_admin_page_parent();
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($menu as $item) {
|
||||
$class = '';
|
||||
@@ -62,4 +68,4 @@ endif;
|
||||
|
||||
do_action('admin_notices');
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user