Plugins: Normalize WP_PLUGIN_DIR
in the test added in [37332], otherwise it fails on Windows.
See #29154. git-svn-id: https://develop.svn.wordpress.org/trunk@37719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
25a27bff7d
commit
983d5c94e8
@ -16,7 +16,7 @@ class Tests_Plugin_Basename extends WP_UnitTestCase {
|
||||
|
||||
$old_wp_plugin_paths = $wp_plugin_paths;
|
||||
|
||||
$wp_plugin_paths[ WP_PLUGIN_DIR . '/a-symlinked-plugin' ] = 'C:/www/path/plugins/a-plugin';
|
||||
$wp_plugin_paths[ wp_normalize_path( WP_PLUGIN_DIR ) . '/a-symlinked-plugin' ] = 'C:/www/path/plugins/a-plugin';
|
||||
|
||||
$basename = plugin_basename( 'c:\www\path\plugins\a-plugin\plugin.php' );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user