mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Alter the regex in wptexturize()
to properly handle input like: <> "Hello world" <>
.
Updates unit test data. Props miqrogroove. Fixes #30344. Built from https://develop.svn.wordpress.org/trunk@31965 git-svn-id: http://core.svn.wordpress.org/trunk@31944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
66e483d3e7
commit
8ec192ce1f
@ -235,7 +235,7 @@ function wptexturize($text, $reset = false) {
|
|||||||
. '(?(?=!--)' // Is this a comment?
|
. '(?(?=!--)' // Is this a comment?
|
||||||
. $comment_regex // Find end of comment.
|
. $comment_regex // Find end of comment.
|
||||||
. '|'
|
. '|'
|
||||||
. '[^>]+>' // Find end of element.
|
. '[^>]*>' // Find end of element.
|
||||||
. ')'
|
. ')'
|
||||||
. '|'
|
. '|'
|
||||||
. $shortcode_regex // Find shortcodes.
|
. $shortcode_regex // Find shortcodes.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-beta3-31964';
|
$wp_version = '4.2-beta3-31965';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user