Changeset 32545 for trunk/src/wp-includes/widgets.php
- Timestamp:
- 05/22/2015 05:46:47 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets.php
r32116 r32545 570 570 */ 571 571 public function unregister( $widget_class ) { 572 if ( isset($this->widgets[$widget_class]) ) 573 unset($this->widgets[$widget_class]); 572 unset( $this->widgets[ $widget_class ] ); 574 573 } 575 574 … … 852 851 global $wp_registered_sidebars; 853 852 854 if ( isset( $wp_registered_sidebars[$name] ) ) 855 unset( $wp_registered_sidebars[$name] ); 853 unset( $wp_registered_sidebars[ $name ] ); 856 854 } 857 855 … … 894 892 $id_base = _get_widget_id_base($id); 895 893 if ( in_array($output_callback, $_wp_deprecated_widgets_callbacks, true) && !is_callable($output_callback) ) { 896 if ( isset($wp_registered_widget_controls[$id]) ) 897 unset($wp_registered_widget_controls[$id]); 898 899 if ( isset($wp_registered_widget_updates[$id_base]) ) 900 unset($wp_registered_widget_updates[$id_base]); 901 894 unset( $wp_registered_widget_controls[ $id ] ); 895 unset( $wp_registered_widget_updates[ $id_base ] ); 902 896 return; 903 897 } … … 1025 1019 1026 1020 if ( in_array($control_callback, $_wp_deprecated_widgets_callbacks, true) && !is_callable($control_callback) ) { 1027 if ( isset($wp_registered_widgets[$id]) ) 1028 unset($wp_registered_widgets[$id]); 1029 1021 unset( $wp_registered_widgets[ $id ] ); 1030 1022 return; 1031 1023 }
Note: See TracChangeset
for help on using the changeset viewer.