diff --git wp-includes/plugin.php wp-includes/plugin.php
index f5d213d..e880bc3 100644
|
|
function wp_register_plugin_realpath( $file ) { |
645 | 645 | $plugin_path = wp_normalize_path( dirname( $file ) ); |
646 | 646 | $plugin_realpath = wp_normalize_path( dirname( realpath( $file ) ) ); |
647 | 647 | |
| 648 | if ( $plugin_path === WP_PLUGIN_DIR || $plugin_path === WPMU_PLUGIN_DIR ) { |
| 649 | return false; |
| 650 | } |
| 651 | |
648 | 652 | if ( $plugin_path !== $plugin_realpath ) { |
649 | 653 | $wp_plugin_paths[ $plugin_path ] = $plugin_realpath; |
650 | 654 | } |
| 655 | |
| 656 | return true; |
651 | 657 | } |
652 | 658 | |
653 | 659 | /** |
diff --git wp-settings.php wp-settings.php
index aee35b3..9f73195 100644
|
|
$GLOBALS['wp_plugin_paths'] = array(); |
168 | 168 | |
169 | 169 | // Load must-use plugins. |
170 | 170 | foreach ( wp_get_mu_plugins() as $mu_plugin ) { |
171 | | wp_register_plugin_realpath( $mu_plugin ); |
172 | 171 | include_once( $mu_plugin ); |
173 | 172 | } |
174 | 173 | unset( $mu_plugin ); |