mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Remove unused code. props nofearinc. fixes #26205.
Built from https://develop.svn.wordpress.org/trunk@27033 git-svn-id: http://core.svn.wordpress.org/trunk@26909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7ef7a7cb47
commit
496c05f1e9
@ -1461,15 +1461,6 @@ function get_admin_page_parent( $parent = '' ) {
|
|||||||
return $parent;
|
return $parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
if ( !empty ( $parent_file ) ) {
|
|
||||||
if ( isset( $_wp_real_parent_file[$parent_file] ) )
|
|
||||||
$parent_file = $_wp_real_parent_file[$parent_file];
|
|
||||||
|
|
||||||
return $parent_file;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ( $pagenow == 'admin.php' && isset( $plugin_page ) ) {
|
if ( $pagenow == 'admin.php' && isset( $plugin_page ) ) {
|
||||||
foreach ( (array)$menu as $parent_menu ) {
|
foreach ( (array)$menu as $parent_menu ) {
|
||||||
if ( $parent_menu[2] == $plugin_page ) {
|
if ( $parent_menu[2] == $plugin_page ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user