~canonical-sysadmins/wordpress/4.4.2

« back to all changes in this revision

Viewing changes to wp-includes/widgets.php

  • Committer: Barry Price
  • Date: 2016-01-07 06:09:42 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: barry.price@canonical.com-20160107060942-1ghv2tqiwm8z0j36
Merge WP4.4.1 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
607
607
        if ( is_int( $index ) ) {
608
608
                $index = "sidebar-$index";
609
609
        } else {
610
 
                $sanitized_index = sanitize_title( $index );
 
610
                $index = sanitize_title( $index );
611
611
                foreach ( (array) $wp_registered_sidebars as $key => $value ) {
612
 
                        if ( sanitize_title( $value['name'] ) == $sanitized_index ) {
 
612
                        if ( sanitize_title( $value['name'] ) == $index ) {
613
613
                                $index = $key;
614
614
                                break;
615
615
                        }