Changeset 20783
- Timestamp:
- 05/14/2012 04:45:32 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-customize-setting.php
r20645 r20783 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 : -
trunk/wp-includes/option.php
r20287 r20783 44 44 if ( defined( 'WP_SETUP_CONFIG' ) ) 45 45 return false; 46 47 $default = apply_filters( 'default_option_' . $option, $default ); 46 48 47 49 if ( ! defined( 'WP_INSTALLING' ) ) { … … 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);
Note: See TracChangeset
for help on using the changeset viewer.