mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Alter the regex in wptexturize() to properly handle input like: <> "Hello world" <>.
Updates unit test data. Props miqrogroove. Fixes #30344. git-svn-id: https://develop.svn.wordpress.org/trunk@31965 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1393,6 +1393,18 @@ class Tests_Formatting_WPTexturize extends WP_UnitTestCase {
|
||||
'[Let\'s get crazy<input>[caption code="<a href=\'?a[]=100\'>hello</a>"]</input>world]', // caption shortcode is invalid here because it contains [] chars.
|
||||
'[Let’s get crazy<input>[caption code=”<a href=\'?a[]=100\'>hello</a>“]</input>world]',
|
||||
),
|
||||
array(
|
||||
'<> ... <>',
|
||||
'<> … <>',
|
||||
),
|
||||
array(
|
||||
'<> ... <> ... >',
|
||||
'<> … <> … >',
|
||||
),
|
||||
array(
|
||||
'<> ... < ... > ... <>',
|
||||
'<> … < ... > … <>',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user