Changeset 34838 for trunk/src/wp-includes/class-wp-customize-setting.php
- Timestamp:
- 10/05/2015 09:57:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-setting.php
r33911 r34838 305 305 * 306 306 * @param mixed $value The value to update. 307 * @return mixedThe result of saving the value.307 * @return bool The result of saving the value. 308 308 */ 309 309 protected function update( $value ) { 310 switch ( $this->type ) {310 switch ( $this->type ) { 311 311 case 'theme_mod' : 312 return $this->_update_theme_mod( $value ); 312 $this->_update_theme_mod( $value ); 313 return true; 313 314 314 315 case 'option' : … … 328 329 * @param WP_Customize_Setting $this WP_Customize_Setting instance. 329 330 */ 330 return do_action( 'customize_update_' . $this->type, $value, $this ); 331 do_action( "customize_update_{$this->type}", $value, $this ); 332 333 return has_action( "customize_update_{$this->type}" ); 331 334 } 332 335 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)