diff --git a/wp-includes/class-wp-widget.php b/wp-includes/class-wp-widget.php
index e91f5cd9f9..e2afca0193 100644
|
a
|
b
|
class WP_Widget {
|
| 365 | 365 | $this->_set( $widget_args['number'] ); |
| 366 | 366 | $instances = $this->get_settings(); |
| 367 | 367 | |
| | 368 | if ( is_null( $instances[ $this->number ] ) ) { |
| | 369 | $instances[ $this->number ] = []; |
| | 370 | _doing_it_wrong( |
| | 371 | "WP_Widget::update( null )", |
| | 372 | __( 'WP_Widget::update() must return an array of settings or false.' ), |
| | 373 | '6.1.0' |
| | 374 | ); |
| | 375 | } |
| | 376 | |
| 368 | 377 | if ( isset( $instances[ $this->number ] ) ) { |
| 369 | 378 | $instance = $instances[ $this->number ]; |