Ticket #28430: plugin.php.patch
File plugin.php.patch, 489 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/plugin.php
618 618 */ 619 619 function plugin_basename( $file ) { 620 620 global $wp_plugin_paths; 621 621 if ( ! isset( $file ) ) { 622 return; 623 } 622 624 foreach ( $wp_plugin_paths as $dir => $realdir ) { 623 625 if ( strpos( $file, $realdir ) === 0 ) { 624 626 $file = $dir . substr( $file, strlen( $realdir ) );