make *_option(), *_transient() functions consistently expect unslashed data. Props Denis-de-Bernardy. see #12416

git-svn-id: https://develop.svn.wordpress.org/trunk@13673 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-03-11 21:49:56 +00:00
parent 09fdceae63
commit 9b019acfbe
3 changed files with 38 additions and 50 deletions
+1 -1
View File
@@ -1200,7 +1200,7 @@ function validate_current_theme() {
function get_theme_mod($name, $default = false) {
$theme = get_current_theme();
$mods = get_option( esc_sql( "mods_$theme" ) );
$mods = get_option( "mods_$theme" );
if ( isset($mods[$name]) )
return apply_filters( "theme_mod_$name", $mods[$name] );