WordPress.org

Make WordPress Core

Changeset 11565


Ignore:
Timestamp:
06/15/2009 12:22:53 AM (9 years ago)
Author:
ryan
Message:

Menu fixes

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r11450 r11565  
    945945    }
    946946
     947    if ( isset( $plugin_page ) && ( $plugin_page == $parent ) && isset( $_wp_menu_nopriv[$plugin_page] ) )
     948        return false;
     949
    947950    if ( isset( $submenu[$parent] ) ) {
    948951        foreach ( $submenu[$parent] as $submenu_array ) {
  • trunk/wp-includes/plugin.php

    r11409 r11565  
    496496    $mu_plugin_dir = preg_replace('|/+|','/', $mu_plugin_dir); // remove any duplicate slash
    497497    $file = preg_replace('#^' . preg_quote($plugin_dir, '#') . '/|^' . preg_quote($mu_plugin_dir, '#') . '/#','',$file); // get relative path from plugins dir
     498    $file = trim($file, '/');
    498499    return $file;
    499500}
Note: See TracChangeset for help on using the changeset viewer.