Changeset 47122 for trunk/src/wp-includes/pomo/plural-forms.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/plural-forms.php
r46586 r47122 104 104 105 105 switch ( $next ) { 106 // Ignore whitespace 106 // Ignore whitespace. 107 107 case ' ': 108 108 case "\t": … … 110 110 break; 111 111 112 // Variable (n) 112 // Variable (n). 113 113 case 'n': 114 114 $output[] = array( 'var' ); … … 116 116 break; 117 117 118 // Parentheses 118 // Parentheses. 119 119 case '(': 120 120 $stack[] = $next; … … 144 144 break; 145 145 146 // Operators 146 // Operators. 147 147 case '|': 148 148 case '&': … … 162 162 $o2 = $stack[ count( $stack ) - 1 ]; 163 163 164 // Ternary is right-associative in C 164 // Ternary is right-associative in C. 165 165 if ( $operator === '?:' || $operator === '?' ) { 166 166 if ( self::$op_precedence[ $operator ] >= self::$op_precedence[ $o2 ] ) { … … 178 178 break; 179 179 180 // Ternary "else" 180 // Ternary "else". 181 181 case ':': 182 182 $found = false; … … 202 202 break; 203 203 204 // Default - number or invalid 204 // Default - number or invalid. 205 205 default: 206 206 if ( $next >= '0' && $next <= '9' ) {
Note: See TracChangeset
for help on using the changeset viewer.