Ticket #28226: 28226-plugin.php.diff
File 28226-plugin.php.diff, 1.0 KB (added by , 11 years ago) |
---|
-
plugin.php
1439 1439 function menu_page_url($menu_slug, $echo = true) { 1440 1440 global $_parent_pages; 1441 1441 1442 if ( isset( $_parent_pages[$menu_slug] ) ) {1442 if ( isset( $_parent_pages[$menu_slug] ) && is_network_admin() ) { 1443 1443 $parent_slug = $_parent_pages[$menu_slug]; 1444 1444 if ( $parent_slug && ! isset( $_parent_pages[$parent_slug] ) ) { 1445 $url = network_admin_url( add_query_arg( 'page', $menu_slug, $parent_slug ) ); 1446 } else { 1447 $url = network_admin_url( 'admin.php?page=' . $menu_slug ); 1448 } 1449 } else if ( isset( $_parent_pages[$menu_slug] ) && ! is_network_admin() ) { 1450 $parent_slug = $_parent_pages[$menu_slug]; 1451 if ( $parent_slug && ! isset( $_parent_pages[$parent_slug] ) ) { 1445 1452 $url = admin_url( add_query_arg( 'page', $menu_slug, $parent_slug ) ); 1446 1453 } else { 1447 1454 $url = admin_url( 'admin.php?page=' . $menu_slug ); … … 1458 1465 return $url; 1459 1466 } 1460 1467 1468 1461 1469 // 1462 1470 // Pluggable Menu Support -- Private 1463 1471 //