Changeset 56466
- Timestamp:
- 08/25/2023 01:26:01 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-widget.php
r55398 r56466 430 430 $number = $wp_registered_widgets[ $del_id ]['params'][0]['number']; 431 431 432 if ( $this->id_base . '-' . $number == $del_id ) {432 if ( $this->id_base . '-' . $number === $del_id ) { 433 433 unset( $all_instances[ $number ] ); 434 434 } … … 437 437 if ( isset( $_POST[ 'widget-' . $this->id_base ] ) && is_array( $_POST[ 'widget-' . $this->id_base ] ) ) { 438 438 $settings = $_POST[ 'widget-' . $this->id_base ]; 439 } elseif ( isset( $_POST['id_base'] ) && $_POST['id_base'] == $this->id_base ) {439 } elseif ( isset( $_POST['id_base'] ) && $_POST['id_base'] === $this->id_base ) { 440 440 $num = $_POST['multi_number'] ? (int) $_POST['multi_number'] : (int) $_POST['widget_number']; 441 441 $settings = array( $num => array() ); … … 509 509 $all_instances = $this->get_settings(); 510 510 511 if ( -1 == $widget_args['number'] ) {511 if ( -1 === $widget_args['number'] ) { 512 512 // We echo out a form where 'number' can be set later. 513 513 $this->_set( '__i__' );
Note: See TracChangeset
for help on using the changeset viewer.