Ticket #20448: 20448.2.diff
File 20448.2.diff, 1.4 KB (added by , 13 years ago) |
---|
-
wp-includes/option.php
44 44 if ( defined( 'WP_SETUP_CONFIG' ) ) 45 45 return false; 46 46 47 $default = apply_filters( 'default_option_' . $option, $default ); 48 47 49 if ( ! defined( 'WP_INSTALLING' ) ) { 48 50 // prevent non-existent options from triggering multiple queries 49 51 $notoptions = wp_cache_get( 'notoptions', 'options' ); … … 754 756 if ( false !== $pre ) 755 757 return $pre; 756 758 759 $default = apply_filters( 'default_site_option_' . $option, $default ); 760 757 761 if ( !is_multisite() ) { 758 762 $value = get_option($option, $default); 759 763 } else { -
wp-includes/class-wp-customize-setting.php
68 68 case 'option' : 69 69 if ( empty( $this->id_data[ 'keys' ] ) ) 70 70 add_filter( 'pre_option_' . $this->id_data[ 'base' ], array( $this, '_preview_filter' ) ); 71 else 71 else { 72 72 add_filter( 'option_' . $this->id_data[ 'base' ], array( $this, '_preview_filter' ) ); 73 add_filter( 'default_option_' . $this->id_data[ 'base' ], array( $this, '_preview_filter' ) ); 74 } 73 75 break; 74 76 default : 75 77 do_action( 'customize_preview_' . $this->id );