Fix: anchor-utils filter does not detect an empty anchor tag (e.g. <a name="test"><a>), props Olivier Burgard. If an empty anchor tag is in front of image link, "thickbox" class cannot be added to the link then the image cannot be overlaid by click.
This commit is contained in:
1 parent
e9c173628f
commit
f2d0c6aa7e
1 file changed
+2
-2
@@ -51,7 +51,7 @@ class anchor_utils {
|
||||
<\s*a\s+
|
||||
([^<>]+)
|
||||
>
|
||||
(.+?)
|
||||
((?!<\s*\/\s*a\s*>).+?)
|
||||
<\s*\/\s*a\s*>
|
||||
/isx", array('anchor_utils', 'ob_filter_callback'), $text);
|
||||
|
||||
@@ -118,7 +118,7 @@ class anchor_utils {
|
||||
<\s*a\s+
|
||||
([^<>]+)
|
||||
>
|
||||
(.+?)
|
||||
((?!<\s*\/\s*a\s*>).+?)
|
||||
<\s*\/\s*a\s*>
|
||||
/isx", array('anchor_utils', 'filter_callback'), $text);
|
||||
|
||||
|
||||
Reference in new issue
Block a user