WordPress.org

Make WordPress Core

Changeset 5474


Ignore:
Timestamp:
05/14/2007 05:13:39 AM (11 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r5421 r5474  
    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.