mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 09:34:41 +00:00
Make HTML tag searches for <code> and <pre> case-insensitive in make_clickable().
Props bpetty. Fixes #23756. git-svn-id: https://develop.svn.wordpress.org/trunk@26094 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -301,7 +301,7 @@ class Tests_Formatting_MakeClickable extends WP_UnitTestCase {
|
||||
'<codecustomtag>http://wordpress.org</codecustomtag>',
|
||||
'URL before pre http://wordpress.org<pre>http://wordpress.org</pre>',
|
||||
'URL before code http://wordpress.org<code>http://wordpress.org</code>',
|
||||
'URL after pre <pre>http://wordpress.org</pre>http://wordpress.org',
|
||||
'URL after pre <PRE>http://wordpress.org</PRE>http://wordpress.org',
|
||||
'URL after code <code>http://wordpress.org</code>http://wordpress.org',
|
||||
'URL before and after pre http://wordpress.org<pre>http://wordpress.org</pre>http://wordpress.org',
|
||||
'URL before and after code http://wordpress.org<code>http://wordpress.org</code>http://wordpress.org',
|
||||
@@ -317,7 +317,7 @@ class Tests_Formatting_MakeClickable extends WP_UnitTestCase {
|
||||
'<codecustomtag><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a></codecustomtag>',
|
||||
'URL before pre <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a><pre>http://wordpress.org</pre>',
|
||||
'URL before code <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a><code>http://wordpress.org</code>',
|
||||
'URL after pre <pre>http://wordpress.org</pre><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>',
|
||||
'URL after pre <PRE>http://wordpress.org</PRE><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>',
|
||||
'URL after code <code>http://wordpress.org</code><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>',
|
||||
'URL before and after pre <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a><pre>http://wordpress.org</pre><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>',
|
||||
'URL before and after code <a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a><code>http://wordpress.org</code><a href="http://wordpress.org" rel="nofollow">http://wordpress.org</a>',
|
||||
|
||||
Reference in New Issue
Block a user