WordPress.org

Make WordPress Core

Changeset 9189


Ignore:
Timestamp:
10/15/08 20:47:56 (6 years ago)
Author:
westi
Message:

Notice fix and don't count inside a loop. Fixes #7653 props ryan.

File:
1 edited

Legend:

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

    r9179 r9189  
    20322032        $result .= $l['between_only_two'] . array_shift($args); 
    20332033    // Loop when more than two args 
    2034     while ( count($args) ) { 
     2034    $i = count($args); 
     2035    while ( $i ) { 
    20352036        $arg = array_shift($args); 
     2037        $i--; 
    20362038        if ( $i == 1 ) 
    20372039            $result .= $l['between_last_two'] . $arg; 
Note: See TracChangeset for help on using the changeset viewer.