Make WordPress Core

Ticket #28430: plugin.php.patch

File plugin.php.patch, 489 bytes (added by jigneshkaila, 11 years ago)

It' contain patch file

  • src/wp-includes/plugin.php

     
    618618 */
    619619function plugin_basename( $file ) {
    620620        global $wp_plugin_paths;
    621 
     621        if ( ! isset( $file ) ) {
     622                        return;
     623        }
    622624        foreach ( $wp_plugin_paths as $dir => $realdir ) {
    623625                if ( strpos( $file, $realdir ) === 0 ) {
    624626                        $file = $dir . substr( $file, strlen( $realdir ) );