mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Widgets: Revert [34465], as it introduced a regression, making the $index argument of dynamic_sidebar() case-sensitive.
Fixes #34995 for trunk. See #23423. git-svn-id: https://develop.svn.wordpress.org/trunk@36130 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -616,9 +616,9 @@ function dynamic_sidebar( $index = 1 ) {
|
||||
if ( is_int( $index ) ) {
|
||||
$index = "sidebar-$index";
|
||||
} else {
|
||||
$sanitized_index = sanitize_title( $index );
|
||||
$index = sanitize_title( $index );
|
||||
foreach ( (array) $wp_registered_sidebars as $key => $value ) {
|
||||
if ( sanitize_title( $value['name'] ) == $sanitized_index ) {
|
||||
if ( sanitize_title( $value['name'] ) == $index ) {
|
||||
$index = $key;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user