Changeset 14154
- Timestamp:
- 04/18/2010 03:32:39 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/widgets.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r13810 r14154 535 535 * @since 2.2.0 536 536 * @uses $wp_registered_sidebars Stores the new sidebar in this array by sidebar ID. 537 * @uses parse_str() Converts a string to an array to be used in the rest of the function.538 * @usedby register_sidebars()539 537 * 540 538 * @param string|array $args Builds Sidebar based off of 'name' and 'id' values … … 543 541 function register_sidebar($args = array()) { 544 542 global $wp_registered_sidebars; 545 546 if ( is_string($args) )547 parse_str($args, $args);548 543 549 544 $i = count($wp_registered_sidebars) + 1; … … 559 554 ); 560 555 561 $sidebar = array_merge($defaults, (array) $args);556 $sidebar = wp_parse_args( $args, $defaults ); 562 557 563 558 $wp_registered_sidebars[$sidebar['id']] = $sidebar;
Note: See TracChangeset
for help on using the changeset viewer.