Changeset 14126 for trunk/wp-admin/includes/plugin.php
- Timestamp:
- 04/18/2010 02:56:00 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r13805 r14126 1243 1243 global $pagenow; 1244 1244 global $plugin_page; 1245 global $typenow; 1245 1246 1246 1247 if ( ! empty ( $title ) ) … … 1268 1269 } 1269 1270 } else { 1270 foreach ( array_keys( $submenu ) as $parent) {1271 foreach ( array_keys( $submenu ) as $parent ) { 1271 1272 foreach ( $submenu[$parent] as $submenu_array ) { 1272 1273 if ( isset( $plugin_page ) && 1273 ($plugin_page == $submenu_array[2] ) && 1274 (($parent == $pagenow ) || ($parent == $plugin_page ) || ($plugin_page == $hook ) || (($pagenow == 'admin.php' ) && ($parent1 != $submenu_array[2] ) ) ) 1274 ( $plugin_page == $submenu_array[2] ) && 1275 ( 1276 ( $parent == $pagenow ) || 1277 ( $parent == $plugin_page ) || 1278 ( $plugin_page == $hook ) || 1279 ( $pagenow == 'admin.php' && $parent1 != $submenu_array[2] ) || 1280 ( !empty($typenow) && $parent == $pagenow . '?post_type=' . $typenow) 1281 ) 1275 1282 ) { 1276 1283 $title = $submenu_array[3]; … … 1293 1300 foreach ( $menu as $menu_array ) { 1294 1301 if ( isset( $plugin_page ) && 1295 ( $plugin_page == $menu_array[2] ) &&1296 ( $pagenow == 'admin.php' ) &&1297 ( $parent1 == $menu_array[2] ) )1302 ( $plugin_page == $menu_array[2] ) && 1303 ( $pagenow == 'admin.php' ) && 1304 ( $parent1 == $menu_array[2] ) ) 1298 1305 { 1299 1306 $title = $menu_array[3]; … … 1331 1338 } 1332 1339 1333 1334 1340 $plugin_name = preg_replace( '!\.php!', '', $plugin_page ); 1335 1341 1336 return $page_type .'_page_'.$plugin_name;1342 return $page_type . '_page_' . $plugin_name; 1337 1343 } 1338 1344
Note: See TracChangeset
for help on using the changeset viewer.