Ticket #23423: 23423.patch
File 23423.patch, 758 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/widget-functions.php
504 504 function dynamic_sidebar($index = 1) { 505 505 global $wp_registered_sidebars, $wp_registered_widgets; 506 506 507 if ( is_int( $index) ) {507 if ( is_int( $index ) ) { 508 508 $index = "sidebar-$index"; 509 509 } else { 510 $ index = sanitize_title($index);510 $sanitized_index = sanitize_title( $index ); 511 511 foreach ( (array) $wp_registered_sidebars as $key => $value ) { 512 if ( sanitize_title( $value['name']) == $index ) {512 if ( sanitize_title( $value['name'] ) == $sanitized_index ) { 513 513 $index = $key; 514 514 break; 515 515 }