WordPress.org

Make WordPress Core

Ticket #16953: 16953.diff

File 16953.diff, 552 bytes (added by scribu, 3 years ago)

'pre_plugin_basename' filter

  • wp-includes/plugin.php

     
    547547 * @uses WP_PLUGIN_DIR 
    548548 */ 
    549549function plugin_basename($file) { 
     550        $file = apply_filters( 'pre_plugin_basename', $file ); 
    550551        $file = str_replace('\\','/',$file); // sanitize for Win32 installs 
    551552        $file = preg_replace('|/+|','/', $file); // remove any duplicate slash 
    552553        $plugin_dir = str_replace('\\','/',WP_PLUGIN_DIR); // sanitize for Win32 installs