IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 675 | 675 | function plugin_basename( $file ) { |
| 676 | 676 | global $wp_plugin_paths; |
| 677 | 677 | |
| | 678 | $file = wp_normalize_path( $file ); |
| | 679 | |
| 678 | 680 | foreach ( $wp_plugin_paths as $dir => $realdir ) { |
| 679 | 681 | if ( strpos( $file, $realdir ) === 0 ) { |
| 680 | 682 | $file = $dir . substr( $file, strlen( $realdir ) ); |
| 681 | 683 | } |
| 682 | 684 | } |
| 683 | 685 | |
| 684 | | $file = wp_normalize_path( $file ); |
| 685 | 686 | $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR ); |
| 686 | 687 | $mu_plugin_dir = wp_normalize_path( WPMU_PLUGIN_DIR ); |
| 687 | 688 | |