Make WordPress Core


Ignore:
Timestamp:
05/14/2007 05:12:52 AM (18 years ago)
Author:
ryan
Message:

Allow sidebar names to be passed to dynamic_sidebar(). fixes #4258 for 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/widgets.php

    r5420 r5473  
    189189    } else {
    190190        $index = sanitize_title($index);
     191        foreach ( $wp_registered_sidebars as $key => $value ) {
     192            if ( sanitize_title($value['name']) == $index ) {
     193                $index = $key;
     194                break;
     195            }
     196        }
    191197    }
    192198
Note: See TracChangeset for help on using the changeset viewer.