Make WordPress Core

Ticket #28487: 28487.diff

File 28487.diff, 619 bytes (added by johnbillion, 11 years ago)
  • src/wp-includes/functions.php

     
    33793379}
    33803380
    33813381/**
     3382 * Determine if the scheme of the given URL is https.
     3383 *
     3384 * @since 4.0.0
     3385 *
     3386 * @param  string  $url The URL
     3387 * @return boolean      True if the given URL uses https, false if not (or if the URL is not valid).
     3388 */
     3389function is_https( $url ) {
     3390        return ( 'https' === parse_url( $url, PHP_URL_SCHEME ) );
     3391}
     3392
     3393/**
    33823394 * Whether SSL login should be forced.
    33833395 *
    33843396 * @since 2.6.0