Make WordPress Core

Changeset 31837


Ignore:
Timestamp:
03/20/2015 12:44:21 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Make a comment clearer (without implying inversed logic) and fix a typo.

see #31645.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r31836 r31837  
    323323        // HTTP 1.1 allows 8000 chars but the "de-facto" standard supported in all current browsers is 2048.
    324324        if ( strlen( $url ) > 2048 ) {
    325             return ''; // Return empty rather than a trunacted/invalid URL
    326         }
    327 
    328         // Does it look like an URL?
     325            return ''; // Return empty rather than a truncated/invalid URL
     326        }
     327
     328        // Does not look like an URL.
    329329        if ( ! preg_match( '/^([!#$&-;=?-\[\]_a-z~]|%[0-9a-fA-F]{2})+$/', $url ) ) {
    330330            return '';
Note: See TracChangeset for help on using the changeset viewer.