Changeset 42343 for trunk/tests/phpunit/includes/plural-form-function.php
- Timestamp:
- 11/30/2017 11:09:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/plural-form-function.php
r41730 r42343 9 9 function tests_make_plural_form_function( $nplurals, $expression ) { 10 10 $expression = str_replace( 'n', '$n', $expression ); 11 $func_body = "11 $func_body = " 12 12 \$index = (int)($expression); 13 13 return (\$index < $nplurals)? \$index : $nplurals - 1;";
Note: See TracChangeset
for help on using the changeset viewer.