From eb54f6826104e17c20e6640fc58b5bc85853008a Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 12 Mar 2007 00:07:54 +0000 Subject: [PATCH] Add filters to theme_mods git-svn-id: https://develop.svn.wordpress.org/trunk@5026 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 2f2c1fbb12..7bd35fd604 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -78,7 +78,6 @@ function get_theme_data( $theme_file ) { $name = $theme_name[1]; $name = trim( $name ); $theme = $name; - $theme_uri = trim( $theme_uri[1] ); if ( '' == $author_uri[1] ) { $author = trim( $author_name[1] ); @@ -86,7 +85,7 @@ function get_theme_data( $theme_file ) { $author = '' . trim( $author_name[1] ) . ''; } - return array( 'Name' => $name, 'Title' => $theme, 'URI' => $theme_uri, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template[1], 'Status' => $status ); + return array( 'Name' => $name, 'Title' => $theme, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template[1], 'Status' => $status ); } function get_themes() { @@ -441,9 +440,9 @@ function get_theme_mod($name, $default = false) { $mods = get_option("mods_$theme"); if ( isset($mods[$name]) ) - return $mods[$name]; + return apply_filters( "theme_mod_$name", $mods[$name] ); - return sprintf($default, get_template_directory_uri()); + return apply_filters( "theme_mod_$name", sprintf($default, get_template_directory_uri()) ); } function set_theme_mod($name, $value) {