Wordpres++

This commit is contained in:
nikolark committed 2016-01-27 09:52:51 +01:00
1 parent 3e89c56288
commit b3863fc635
152 files changed
+4903 -3602

No files matched your search

+2 -2
View File
@@ -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;
}