WordPress.org

Make WordPress Core

Ticket #7653: 7653.r8781.diff

File 7653.r8781.diff, 591 bytes (added by jacobsantos, 10 years ago)

defines variable based off of r8781.

  • formatting.php

     
    20192019        $result = array_shift($args);
    20202020        if ( count($args) == 1 )
    20212021                $result .= $l['between_only_two'] . array_shift($args);
    2022         // Loop when more than two args
    2023         while ( count($args) ) {
     2022
     2023        while ( $i = count($args) ) {
    20242024                $arg = array_shift($args);
    20252025                if ( $i == 1 )
    20262026                        $result .= $l['between_last_two'] . $arg;
    20272027                else
    20282028                        $result .= $l['between'] . $arg;
    20292029        }
     2030
    20302031        return $result . substr($pattern, 2);
    20312032}
    20322033