Make WordPress Core

Ticket #29154: 29154.3.patch

File 29154.3.patch, 711 bytes (added by flyingdr, 8 years ago)

Created patch against current trunk (rev.37295)

  • wp-includes/plugin.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    675675function plugin_basename( $file ) {
    676676        global $wp_plugin_paths;
    677677
     678        $file = wp_normalize_path( $file );
     679
    678680        foreach ( $wp_plugin_paths as $dir => $realdir ) {
    679681                if ( strpos( $file, $realdir ) === 0 ) {
    680682                        $file = $dir . substr( $file, strlen( $realdir ) );
    681683                }
    682684        }
    683685
    684         $file = wp_normalize_path( $file );
    685686        $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
    686687        $mu_plugin_dir = wp_normalize_path( WPMU_PLUGIN_DIR );
    687688