mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 15:46:04 +01:00
Make a comment clearer (without implying inversed logic) and fix a typo.
see #31645. Built from https://develop.svn.wordpress.org/trunk@31837 git-svn-id: http://core.svn.wordpress.org/trunk@31819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1666eb5616
commit
b568da1997
@ -322,10 +322,10 @@ class WP_Press_This {
|
||||
|
||||
// HTTP 1.1 allows 8000 chars but the "de-facto" standard supported in all current browsers is 2048.
|
||||
if ( strlen( $url ) > 2048 ) {
|
||||
return ''; // Return empty rather than a trunacted/invalid URL
|
||||
return ''; // Return empty rather than a truncated/invalid URL
|
||||
}
|
||||
|
||||
// Does it look like an URL?
|
||||
// Does not look like an URL.
|
||||
if ( ! preg_match( '/^([!#$&-;=?-\[\]_a-z~]|%[0-9a-fA-F]{2})+$/', $url ) ) {
|
||||
return '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user