From b568da1997b028c438716f74c7a98611bcb28d0e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 20 Mar 2015 00:45:27 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-press-this.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-press-this.php b/wp-admin/includes/class-wp-press-this.php index fd06334ae7..d44326e986 100644 --- a/wp-admin/includes/class-wp-press-this.php +++ b/wp-admin/includes/class-wp-press-this.php @@ -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 ''; }