Changeset 27910 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 04/02/2014 06:30:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r27907 r27910 1369 1369 $this->_is_capturing_option_updates = true; 1370 1370 1371 add_filter( 'pre_update_option', array( $this, ' _capture_filter_pre_update_option' ), 10, 3 );1371 add_filter( 'pre_update_option', array( $this, 'capture_filter_pre_update_option' ), 10, 3 ); 1372 1372 } 1373 1373 … … 1383 1383 * @return mixed 1384 1384 */ 1385 public function _capture_filter_pre_update_option( $new_value, $option_name, $old_value ) {1385 public function capture_filter_pre_update_option( $new_value, $option_name, $old_value ) { 1386 1386 if ( $this->is_option_capture_ignored( $option_name ) ) { 1387 1387 return; … … 1389 1389 1390 1390 if ( ! isset( $this->_captured_options[$option_name] ) ) { 1391 add_filter( "pre_option_{$option_name}", array( $this, ' _capture_filter_pre_get_option' ) );1391 add_filter( "pre_option_{$option_name}", array( $this, 'capture_filter_pre_get_option' ) ); 1392 1392 } 1393 1393 … … 1406 1406 * @return mixed 1407 1407 */ 1408 public function _capture_filter_pre_get_option( $value ) {1408 public function capture_filter_pre_get_option( $value ) { 1409 1409 $option_name = preg_replace( '/^pre_option_/', '', current_filter() ); 1410 1410 … … 1428 1428 } 1429 1429 1430 remove_filter( '_capture_filter_pre_update_option', array( $this, '_capture_filter_pre_update_option' ), 10, 3 ); 1430 remove_filter( 'pre_update_option', array( $this, 'capture_filter_pre_update_option' ), 10, 3 ); 1431 1431 1432 foreach ( array_keys( $this->_captured_options ) as $option_name ) { 1432 remove_filter( "pre_option_{$option_name}", array( $this, ' _capture_filter_pre_get_option' ) );1433 remove_filter( "pre_option_{$option_name}", array( $this, 'capture_filter_pre_get_option' ) ); 1433 1434 } 1434 1435
Note: See TracChangeset
for help on using the changeset viewer.