WordPress.org

Make WordPress Core

Changeset 6275


Ignore:
Timestamp:
10/19/2007 04:32:56 PM (11 years ago)
Author:
westi
Message:

Use a for loop where it's more appropriate. Fixes #5234 props darkdragon and DD32.

File:
1 edited

Legend:

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

    r6207 r6275  
    1919        parse_str($args, $args);
    2020
    21     $i = 1;
    22 
    23     while ( $i <= $number ) {
     21    for ( $i=1; $i <= $number; $i++ ) {
    2422        $_args = $args;
    2523        if ( $number > 1 ) {
     
    3028        $_args['id'] = isset($args['id']) ? $args['id'] : "sidebar-$i";
    3129        register_sidebar($_args);
    32         ++$i;
    3330    }
    3431}
Note: See TracChangeset for help on using the changeset viewer.