mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 11:44:33 +00:00
Detect and handle symlinking of plugins in plugin_basename().
props rmccue, MikeSchinkel, jdgrimes. see #16953. git-svn-id: https://develop.svn.wordpress.org/trunk@27158 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -143,6 +143,7 @@ if ( $action ) {
|
||||
@ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
|
||||
// Go back to "sandbox" scope so we get the same errors as before
|
||||
function plugin_sandbox_scrape( $plugin ) {
|
||||
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin );
|
||||
include( WP_PLUGIN_DIR . '/' . $plugin );
|
||||
}
|
||||
plugin_sandbox_scrape( $plugin );
|
||||
|
||||
Reference in New Issue
Block a user