Make WordPress Core


Ignore:
Timestamp:
06/10/2009 04:36:46 PM (16 years ago)
Author:
westi
Message:

Remove theme_basename() for now as the changeset that introduced it was reverted and nothing uses it. See #10067.

File:
1 edited

Legend:

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

    r11450 r11545  
    11351135}
    11361136
    1137 /**
    1138  * Get the basename of a theme.
    1139  *
    1140  * This method extracts the filename of a theme file from a path
    1141  *
    1142  * @package WordPress
    1143  * @subpackage Plugin
    1144  * @since 2.8.0
    1145  *
    1146  * @access private
    1147  *
    1148  * @param string $file The filename of a theme file
    1149  * @return string The filename relative to the themes folder
    1150  */
    1151 function theme_basename($file) {
    1152     $file = str_replace('\\','/',$file); // sanitize for Win32 installs
    1153     $file = preg_replace('|/+|','/', $file); // remove any duplicate slash
    1154     $theme_dir = str_replace('\\','/', get_theme_root()); // sanitize for Win32 installs
    1155     $theme_dir = preg_replace('|/+|','/', $theme_dir); // remove any duplicate slash
    1156     $file = preg_replace('|^.*/themes/.*?/|','',$file); // get relative path from theme dir
    1157     return $file;
    1158 }
    1159 
    11601137?>
Note: See TracChangeset for help on using the changeset viewer.