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