Changeset 28718 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 06/10/2014 02:08:05 AM (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
r28717 r28718 80 80 } 81 81 82 $static_characters = array_merge( array( '---', ' -- ', '--', ' - ', 'xn–', '...', '``', '\'\'', ' (tm)' ), $cockney );83 $static_replacements = array_merge( array( $em_dash, ' ' . $em_dash . ' ', $en_dash, ' ' . $en_dash . ' ', 'xn--', '…', $opening_quote, $closing_quote, ' ™' ), $cockneyreplace );82 $static_characters = array_merge( array( '---', '...', '``', '\'\'', ' (tm)' ), $cockney ); 83 $static_replacements = array_merge( array( $em_dash, '…', $opening_quote, $closing_quote, ' ™' ), $cockneyreplace ); 84 84 85 85 $spaces = wp_spaces_regexp(); … … 128 128 $dynamic[ '/\'(?=\Z|\.|' . $spaces . ')/' ] = $closing_single_quote; 129 129 } 130 131 // Dashes and spaces 132 $dynamic[ '/(?<=' . $spaces . ')--(?=' . $spaces . ')/' ] = $em_dash; 133 $dynamic[ '/(?<!xn)--/' ] = $en_dash; 134 $dynamic[ '/(?<=' . $spaces . ')-(?=' . $spaces . ')/' ] = $en_dash; 130 135 131 136 $dynamic_characters = array_keys( $dynamic );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)