Ticket #22116: 22116.patch
File 22116.patch, 676 bytes (added by , 12 years ago) |
---|
-
wp-includes/widgets.php
845 845 $index = "sidebar-$index"; 846 846 } else { 847 847 $index = sanitize_title($index); 848 foreach ( (array) $wp_registered_sidebars as $key => $value ) { 849 if ( sanitize_title($value['name']) == $index ) { 850 $index = $key; 851 break; 848 if ( empty( $wp_registered_sidebars[$index] ) ) { 849 foreach ( (array) $wp_registered_sidebars as $key => $value ) { 850 if ( sanitize_title($value['name']) == $index ) { 851 $index = $key; 852 break; 853 } 852 854 } 853 855 } 854 856 }