From b3144dd3837c18734e6c37c80460f361598e8a6b Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 10 Jun 2009 16:36:46 +0000 Subject: [PATCH] Remove theme_basename() for now as the changeset that introduced it was reverted and nothing uses it. See #10067. git-svn-id: https://develop.svn.wordpress.org/trunk@11545 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 82fe33a189..9d56a6403d 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1134,27 +1134,4 @@ function add_custom_image_header($header_callback, $admin_header_callback) { add_action('admin_menu', array(&$GLOBALS['custom_image_header'], 'init')); } -/** - * Get the basename of a theme. - * - * This method extracts the filename of a theme file from a path - * - * @package WordPress - * @subpackage Plugin - * @since 2.8.0 - * - * @access private - * - * @param string $file The filename of a theme file - * @return string The filename relative to the themes folder - */ -function theme_basename($file) { - $file = str_replace('\\','/',$file); // sanitize for Win32 installs - $file = preg_replace('|/+|','/', $file); // remove any duplicate slash - $theme_dir = str_replace('\\','/', get_theme_root()); // sanitize for Win32 installs - $theme_dir = preg_replace('|/+|','/', $theme_dir); // remove any duplicate slash - $file = preg_replace('|^.*/themes/.*?/|','',$file); // get relative path from theme dir - return $file; -} - ?>