Ticket #29154: 29154.diff
File 29154.diff, 655 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/plugin.php
653 653 function plugin_basename( $file ) { 654 654 global $wp_plugin_paths; 655 655 656 $file = wp_normalize_path( $file ); 657 656 658 foreach ( $wp_plugin_paths as $dir => $realdir ) { 657 659 if ( strpos( $file, $realdir ) === 0 ) { 658 660 $file = $dir . substr( $file, strlen( $realdir ) ); … … 659 661 } 660 662 } 661 663 662 $file = wp_normalize_path( $file );663 664 $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR ); 664 665 $mu_plugin_dir = wp_normalize_path( WPMU_PLUGIN_DIR ); 665 666