WordPress.org

Make WordPress Core

Ticket #16131: 16131.patch

File 16131.patch, 589 bytes (added by solarissmoke, 3 years ago)

Fix PHP notice when adding new RSS widget

  • wp-includes/default-widgets.php

     
    747747        } 
    748748 
    749749        function update($new_instance, $old_instance) { 
    750                 $testurl = ( isset($new_instance['url']) && ($new_instance['url'] != $old_instance['url']) ); 
     750                $testurl = ( isset($new_instance['url']) && ( ! isset($old_instance['url']) || ($new_instance['url'] != $old_instance['url']) ) ); 
    751751                return wp_widget_rss_process( $new_instance, $testurl ); 
    752752        } 
    753753