Make WordPress Core

Ticket #33442: 33442.diff

File 33442.diff, 444 bytes (added by westonruter, 9 years ago)
  • src/wp-includes/widgets.php

    diff --git src/wp-includes/widgets.php src/wp-includes/widgets.php
    index 40de6c8..28daba1 100644
    class WP_Widget { 
    316316                $this->_set( $widget_args['number'] );
    317317                $instances = $this->get_settings();
    318318
    319                 if ( isset( $instances[ $this->number ] ) ) {
     319                if ( array_key_exists( $this->number, $instances ) ) {
    320320                        $instance = $instances[ $this->number ];
    321321
    322322                        /**