Pinking shears.

Built from https://develop.svn.wordpress.org/trunk@29707


git-svn-id: http://core.svn.wordpress.org/trunk@29481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin
2014-09-04 15:23:16 +00:00
parent 89e9363adb
commit f7392ef917
14 changed files with 23 additions and 23 deletions

View File

@@ -15,7 +15,7 @@ class WP_Embed {
/**
* When an URL cannot be embedded, return false instead of returning a link
* or the URL. Bypasses the 'embed_maybe_make_link' filter.
*/
*/
public $return_false_on_fail = false;
/**

View File

@@ -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;