Ticket #16953: mu-symlinks.diff
File mu-symlinks.diff, 884 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/plugin.php
642 642 function wp_register_plugin_realpath( $file ) { 643 643 global $wp_plugin_paths; 644 644 645 $ plugin_path = wp_normalize_path( dirname( $file ));646 $ plugin_realpath = wp_normalize_path( dirname( realpath( $file )) );645 $file = wp_normalize_path( $file ); 646 $realfile = wp_normalize_path( realpath( $file ) ); 647 647 648 $plugin_path = dirname( $file ); 649 $plugin_realpath = dirname( $realfile ); 650 651 if ( $plugin_path == wp_normalize_path( WP_PLUGIN_DIR ) || $plugin_path == wp_normalize_path( WPMU_PLUGIN_DIR ) ) { 652 $plugin_path = $file; 653 $plugin_realpath = $realfile; 654 } 655 648 656 if ( $plugin_path !== $plugin_realpath ) { 649 657 $wp_plugin_paths[ $plugin_path ] = $plugin_realpath; 650 658 }