Changeset 11565
- Timestamp:
- 06/15/2009 12:22:53 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-admin/includes/plugin.php (modified) (1 diff)
-
wp-includes/plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r11450 r11565 945 945 } 946 946 947 if ( isset( $plugin_page ) && ( $plugin_page == $parent ) && isset( $_wp_menu_nopriv[$plugin_page] ) ) 948 return false; 949 947 950 if ( isset( $submenu[$parent] ) ) { 948 951 foreach ( $submenu[$parent] as $submenu_array ) { -
trunk/wp-includes/plugin.php
r11409 r11565 496 496 $mu_plugin_dir = preg_replace('|/+|','/', $mu_plugin_dir); // remove any duplicate slash 497 497 $file = preg_replace('#^' . preg_quote($plugin_dir, '#') . '/|^' . preg_quote($mu_plugin_dir, '#') . '/#','',$file); // get relative path from plugins dir 498 $file = trim($file, '/'); 498 499 return $file; 499 500 }
Note: See TracChangeset
for help on using the changeset viewer.