Changeset 28764 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 06/17/2014 08:13:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r28763 r28764 103 103 $dynamic = array(); 104 104 105 // '99' is an ambiguous caseamong other patterns; assume it's an abbreviated year at the end of a quotation.106 if ( "'" !== $apos &&"'" !== $closing_single_quote ) {105 // '99' and '99" are ambiguous among other patterns; assume it's an abbreviated year at the end of a quotation. 106 if ( "'" !== $apos || "'" !== $closing_single_quote ) { 107 107 $dynamic[ '/\'(\d\d)\'(?=\Z|[.,)}>\-\]]|' . $spaces . ')/' ] = $apos . '$1' . $closing_single_quote; 108 } 109 110 if ( "'" !== $apos || '"' !== $closing_quote ) { 111 $dynamic[ '/\'(\d\d)"(?=\Z|[.,)}>\-\]]|' . $spaces . ')/' ] = $apos . '$1' . $closing_quote; 108 112 } 109 113 … … 127 131 128 132 // Apostrophe in a word. No spaces, double apostrophes, or other punctuation. 129 if ( "'" != $apos ) {133 if ( "'" !== $apos ) { 130 134 $dynamic[ '/(?<!' . $spaces . ')\'(?!\Z|[.,:;"\'(){}<>[\]\-]|' . $spaces . ')/' ] = $apos; 131 135 } … … 152 156 153 157 // Single quotes followed by spaces or ending punctuation. 154 if ( "'" != $closing_single_quote ) {158 if ( "'" !== $closing_single_quote ) { 155 159 $dynamic[ '/\'(?=\Z|[.,)}>\-\]]|' . $spaces . ')/' ] = $closing_single_quote; 156 160 }
Note: See TracChangeset
for help on using the changeset viewer.