Changeset 28761 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 06/17/2014 05:40:07 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/formatting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r28727 r28761 101 101 $dynamic = array(); 102 102 103 // '99' is an ambiguous case among other patterns; assume it's an abbreviated year at the end of a quotation. 104 if ( "'" !== $apos && "'" !== $closing_single_quote ) { 105 $dynamic[ '/\'(\d\d)\'(?=\Z|[.,)}>\-\]]|' . $spaces . ')/' ] = $apos . '$1' . $closing_single_quote; 106 } 107 108 // '99 '99s '99's (apostrophe) But never '9 or '999 or '99.0. 109 if ( "'" !== $apos ) { 110 $dynamic[ '/\'(?=\d\d(?:\Z|(?!\d|[.,]\d)))/' ] = $apos; 111 } 112 103 113 // Quoted Numbers like "42" or '42.00' 104 114 if ( '"' !== $opening_quote && '"' !== $closing_quote ) { … … 107 117 if ( "'" !== $opening_single_quote && "'" !== $closing_single_quote ) { 108 118 $dynamic[ '/(?<=\A|' . $spaces . ')\'(\d[\d\.\,]*)\'/' ] = $opening_single_quote . '$1' . $closing_single_quote; 109 }110 111 // '99 '99s '99's (apostrophe)112 if ( "'" !== $apos ) {113 $dynamic[ '/\'(?=\d)/' ] = $apos;114 119 } 115 120
Note: See TracChangeset
for help on using the changeset viewer.