mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
Widgets: Revert [34465], as it introduced a regression, making the $index argument of dynamic_sidebar() case-sensitive.
Merges [36130] to the 4.4 branch. See #23423. Fixes #34995. Built from https://develop.svn.wordpress.org/branches/4.4@36148 git-svn-id: http://core.svn.wordpress.org/branches/4.4@36114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50efb6e0e0
commit
24967882b6
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4.1-alpha-36147';
|
||||
$wp_version = '4.4.1-alpha-36148';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
|||
|
|
@ -607,9 +607,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user