Make WordPress Core


Ignore:
Timestamp:
02/10/2014 10:59:40 PM (11 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-admin/update.php

    r25951 r27158  
    8585            error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
    8686            @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
    87             include(WP_PLUGIN_DIR . '/' . $plugin);
     87            wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
     88            include( WP_PLUGIN_DIR . '/' . $plugin );
    8889        }
    8990        iframe_footer();
Note: See TracChangeset for help on using the changeset viewer.