mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-17 07:10:27 +00:00
Pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@29707 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -147,7 +147,7 @@ function wptexturize($text, $reset = false) {
|
||||
$dynamic_characters['apos'] = array_keys( $dynamic );
|
||||
$dynamic_replacements['apos'] = array_values( $dynamic );
|
||||
$dynamic = array();
|
||||
|
||||
|
||||
// Quoted Numbers like "42"
|
||||
if ( '"' !== $opening_quote && '"' !== $closing_quote ) {
|
||||
$dynamic[ '/(?<=\A|' . $spaces . ')"(\d[.,\d]*)"/' ] = $opening_quote . '$1' . $closing_quote;
|
||||
@@ -167,11 +167,11 @@ function wptexturize($text, $reset = false) {
|
||||
if ( '"' !== $closing_quote ) {
|
||||
$dynamic[ '/"/' ] = $closing_quote;
|
||||
}
|
||||
|
||||
|
||||
$dynamic_characters['quote'] = array_keys( $dynamic );
|
||||
$dynamic_replacements['quote'] = array_values( $dynamic );
|
||||
$dynamic = array();
|
||||
|
||||
|
||||
// Dashes and spaces
|
||||
$dynamic[ '/---/' ] = $em_dash;
|
||||
$dynamic[ '/(?<=' . $spaces . ')--(?=' . $spaces . ')/' ] = $em_dash;
|
||||
|
||||
Reference in New Issue
Block a user