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:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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