Changeset 47550 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r47383 r47550 451 451 'title' => $wp_registered_sidebars[ $sidebar_id ]['name'], 452 452 'description' => $wp_registered_sidebars[ $sidebar_id ]['description'], 453 'priority' => array_search( $sidebar_id, array_keys( $wp_registered_sidebars ) ),453 'priority' => array_search( $sidebar_id, array_keys( $wp_registered_sidebars ), true ), 454 454 'panel' => 'widgets', 455 455 'sidebar_id' => $sidebar_id, … … 578 578 $parsed_widget_id = $this->parse_widget_id( $widget_id ); 579 579 $width = $wp_registered_widget_controls[ $widget_id ]['width']; 580 $is_core = in_array( $parsed_widget_id['id_base'], $this->core_widget_id_bases );580 $is_core = in_array( $parsed_widget_id['id_base'], $this->core_widget_id_bases, true ); 581 581 $is_wide = ( $width > 250 && ! $is_core ); 582 582 … … 1221 1221 */ 1222 1222 public function is_widget_rendered( $widget_id ) { 1223 return in_array( $widget_id, $this->rendered_widgets );1223 return in_array( $widget_id, $this->rendered_widgets, true ); 1224 1224 } 1225 1225 … … 1233 1233 */ 1234 1234 public function is_sidebar_rendered( $sidebar_id ) { 1235 return in_array( $sidebar_id, $this->rendered_sidebars );1235 return in_array( $sidebar_id, $this->rendered_sidebars, true ); 1236 1236 } 1237 1237
Note: See TracChangeset
for help on using the changeset viewer.