Changeset 61670
- Timestamp:
- 02/18/2026 04:38:42 AM (5 weeks ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 6 edited
-
class-wp-customize-setting.php (modified) (1 diff)
-
customize/class-wp-customize-background-image-setting.php (modified) (1 diff)
-
customize/class-wp-customize-filter-setting.php (modified) (1 diff)
-
customize/class-wp-customize-header-image-setting.php (modified) (2 diffs)
-
customize/class-wp-customize-nav-menu-item-setting.php (modified) (9 diffs)
-
customize/class-wp-customize-nav-menu-setting.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-setting.php
r61433 r61670 709 709 do_action( "customize_update_{$this->type}", $value, $this ); 710 710 711 return has_action( "customize_update_{$this->type}" );711 return (bool) has_action( "customize_update_{$this->type}" ); 712 712 } 713 713 } -
trunk/src/wp-includes/customize/class-wp-customize-background-image-setting.php
r53411 r61670 27 27 /** 28 28 * @since 3.4.0 29 * @since 7.0.0 Return type updated from void to true for compatibility with base class. 29 30 * 30 31 * @param mixed $value The value to update. Not used. 32 * @return true Always returns true. 31 33 */ 32 34 public function update( $value ) { 33 35 remove_theme_mod( 'background_image_thumb' ); 36 return true; 34 37 } 35 38 } -
trunk/src/wp-includes/customize/class-wp-customize-filter-setting.php
r41162 r61670 23 23 * 24 24 * @since 3.4.0 25 * @since 7.0.0 Return type updated from void to true for compatibility with base class. 25 26 * 26 27 * @param mixed $value The value to update. 28 * @return true Always returns true. 27 29 */ 28 public function update( $value ) {} 30 public function update( $value ) { 31 return true; 32 } 29 33 } -
trunk/src/wp-includes/customize/class-wp-customize-header-image-setting.php
r61433 r61670 29 29 /** 30 30 * @since 3.4.0 31 * @since 7.0.0 Return type updated from void to true for compatibility with base class. 31 32 * 32 33 * @global Custom_Image_Header $custom_image_header 33 34 * 34 35 * @param mixed $value The value to update. 36 * @return true Always returns true. 35 37 */ 36 38 public function update( $value ) { … … 59 61 $custom_image_header->set_header_image( $value ); 60 62 } 63 return true; 61 64 } 62 65 } -
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
r61433 r61670 760 760 * 761 761 * @since 4.3.0 762 * @since 7.0.0 Return type updated from null|void to bool for compatibility with base class. 762 763 * 763 764 * @see wp_update_nav_menu_item() … … 766 767 * entirely. See WP_Customize_Nav_Menu_Item_Setting::$default for what the value 767 768 * should consist of. 768 * @return null|void769 * @return bool Whether updated. 769 770 */ 770 771 protected function update( $value ) { 771 772 if ( $this->is_updated ) { 772 return ;773 return ( 'error' !== $this->update_status ); 773 774 } 774 775 … … 807 808 $this->update_status = 'error'; 808 809 $this->update_error = new WP_Error( 'unexpected_nav_menu_setting' ); 809 return ;810 return false; 810 811 } 811 812 … … 813 814 $this->update_status = 'error'; 814 815 $this->update_error = new WP_Error( 'nav_menu_setting_failure' ); 815 return ;816 return false; 816 817 } 817 818 … … 819 820 $this->update_status = 'error'; 820 821 $this->update_error = new WP_Error( 'unexpected_previous_term_id' ); 821 return ;822 return false; 822 823 } 823 824 … … 833 834 $this->update_status = 'error'; 834 835 $this->update_error = new WP_Error( 'unexpected_nav_menu_item_setting' ); 835 return ;836 return false; 836 837 } 837 838 … … 839 840 $this->update_status = 'error'; 840 841 $this->update_error = new WP_Error( 'nav_menu_item_setting_failure' ); 841 return ;842 return false; 842 843 } 843 844 … … 845 846 $this->update_status = 'error'; 846 847 $this->update_error = new WP_Error( 'unexpected_previous_post_id' ); 847 return ;848 return false; 848 849 } 849 850 … … 887 888 } 888 889 } 890 891 return ( 'error' !== $this->update_status ); 889 892 } 890 893 -
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php
r52597 r61670 467 467 * 468 468 * @since 4.3.0 469 * @since 7.0.0 Return type updated from null|void to bool for compatibility with base class. 469 470 * 470 471 * @see wp_update_nav_menu_object() … … 479 480 * @type bool $auto_add Whether pages will auto_add to this menu. Default false. 480 481 * } 481 * @return null|void482 * @return bool Whether updated. 482 483 */ 483 484 protected function update( $value ) { 484 485 if ( $this->is_updated ) { 485 return ;486 return ( 'error' !== $this->update_status ); 486 487 } 487 488 … … 583 584 } 584 585 } 586 587 return ( 'error' !== $this->update_status ); 585 588 } 586 589
Note: See TracChangeset
for help on using the changeset viewer.