Make WordPress Core

Changeset 15829


Ignore:
Timestamp:
10/17/2010 01:47:40 PM (14 years ago)
Author:
scribu
Message:

Apply filter in plugin_basename(). Props vladimir_kolesnikov. Fixes #13550

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/plugin.php

    r15590 r15829  
    556556    $file = preg_replace('#^' . preg_quote($plugin_dir, '#') . '/|^' . preg_quote($mu_plugin_dir, '#') . '/#','',$file); // get relative path from plugins dir
    557557    $file = trim($file, '/');
    558     return $file;
     558    return apply_filters('plugin_basename', $file);
    559559}
    560560
Note: See TracChangeset for help on using the changeset viewer.