WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/10/2014 10:59:40 PM (6 years ago)
Author:
nacin
Message:

Detect and handle symlinking of plugins in plugin_basename().

props rmccue, MikeSchinkel, jdgrimes.
see #16953.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r26997 r27158  
    165165wp_plugin_directory_constants();
    166166
     167$GLOBALS['wp_plugin_paths'] = array();
     168
    167169// Load must-use plugins.
    168170foreach ( wp_get_mu_plugins() as $mu_plugin ) {
     171    wp_register_plugin_realpath( $mu_plugin );
    169172    include_once( $mu_plugin );
    170173}
     
    174177if ( is_multisite() ) {
    175178    foreach( wp_get_active_network_plugins() as $network_plugin ) {
     179        wp_register_plugin_realpath( $network_plugin );
    176180        include_once( $network_plugin );
    177181    }
     
    207211
    208212// Load active plugins.
    209 foreach ( wp_get_active_and_valid_plugins() as $plugin )
     213foreach ( wp_get_active_and_valid_plugins() as $plugin ) {
     214    wp_register_plugin_realpath( $plugin );
    210215    include_once( $plugin );
     216}
    211217unset( $plugin );
    212218
Note: See TracChangeset for help on using the changeset viewer.