Ticket #28430: plugin.dff
File plugin.dff, 518 bytes (added by , 11 years ago) |
---|
Line | |
---|---|
1 | Index: src/wp-includes/plugin.php |
2 | =================================================================== |
3 | --- src/wp-includes/plugin.php (revision 28886) |
4 | +++ src/wp-includes/plugin.php (working copy) |
5 | @@ -624,7 +624,10 @@ |
6 | */ |
7 | function plugin_basename( $file ) { |
8 | global $wp_plugin_paths; |
9 | - |
10 | + |
11 | + if (!isset($file)) { |
12 | + return; |
13 | + } |
14 | foreach ( $wp_plugin_paths as $dir => $realdir ) { |
15 | if ( strpos( $file, $realdir ) === 0 ) { |
16 | $file = $dir . substr( $file, strlen( $realdir ) ); |