Make WordPress Core

Changeset 37719


Ignore:
Timestamp:
06/15/2016 06:30:32 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Plugins: Normalize WP_PLUGIN_DIR in the test added in [37332], otherwise it fails on Windows.

See #29154.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/pluginBasename.php

    r37332 r37719  
    1717        $old_wp_plugin_paths = $wp_plugin_paths;
    1818
    19         $wp_plugin_paths[ WP_PLUGIN_DIR . '/a-symlinked-plugin' ] = 'C:/www/path/plugins/a-plugin';
     19        $wp_plugin_paths[ wp_normalize_path( WP_PLUGIN_DIR ) . '/a-symlinked-plugin' ] = 'C:/www/path/plugins/a-plugin';
    2020
    2121        $basename = plugin_basename( 'c:\www\path\plugins\a-plugin\plugin.php' );
Note: See TracChangeset for help on using the changeset viewer.