Fix do_shortcode('<[shortcode]') edge case.

Props miqrogroove.
Merges [33499] trunk.
See #33116.


git-svn-id: https://develop.svn.wordpress.org/trunk@33594 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse
2015-08-07 02:49:31 +00:00
parent 1939742e32
commit 7a35bff916
2 changed files with 17 additions and 0 deletions

View File

@@ -434,6 +434,14 @@ EOF;
'<div [[gallery]]>',
'<div [gallery]>',
),
array(
'<[[gallery]]>',
'<[gallery]>',
),
array(
'<div style="background:url([[gallery]])">',
'<div style="background:url([[gallery]])">',
),
array(
'[gallery]<div>Hello</div>[/gallery]',
'',
@@ -472,6 +480,10 @@ EOF;
'<div [[gallery]]>', // Shortcodes will never be stripped inside elements.
'<div [[gallery]]>',
),
array(
'<[[gallery]]>',
'<[[gallery]]>',
),
array(
'[gallery]<div>Hello</div>[/gallery]',
'',