Ticket #26876: 26876.2.diff
| File 26876.2.diff, 675 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/widgets.php
211 211 * @access private 212 212 */ 213 213 public function _register() { 214 $settings = $this->get_settings();214 $settings = false; 215 215 $empty = true; 216 216 217 // Prefetch settings only for widgets that are used (whether active or inactive) 218 if ( is_active_widget( false, false, $this->id_base, false ) ) { 219 $settings = $this->get_settings(); 220 } 221 217 222 if ( is_array($settings) ) { 218 223 foreach ( array_keys($settings) as $number ) { 219 224 if ( is_numeric($number) ) {