Widgets: Revert [34465], as it introduced a regression, making the `$index` argument of `dynamic_sidebar()` case-sensitive.
Fixes #34995 for trunk. See #23423. Built from https://develop.svn.wordpress.org/trunk@36130 git-svn-id: http://core.svn.wordpress.org/trunk@36096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b23280fe49
commit
7b3b8f6fd4
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-alpha-36128';
|
$wp_version = '4.5-alpha-36130';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -616,9 +616,9 @@ function dynamic_sidebar( $index = 1 ) {
|
||||||
if ( is_int( $index ) ) {
|
if ( is_int( $index ) ) {
|
||||||
$index = "sidebar-$index";
|
$index = "sidebar-$index";
|
||||||
} else {
|
} else {
|
||||||
$sanitized_index = sanitize_title( $index );
|
$index = sanitize_title( $index );
|
||||||
foreach ( (array) $wp_registered_sidebars as $key => $value ) {
|
foreach ( (array) $wp_registered_sidebars as $key => $value ) {
|
||||||
if ( sanitize_title( $value['name'] ) == $sanitized_index ) {
|
if ( sanitize_title( $value['name'] ) == $index ) {
|
||||||
$index = $key;
|
$index = $key;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue