Ticket #28487: 28487.diff
File 28487.diff, 619 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/functions.php
3379 3379 } 3380 3380 3381 3381 /** 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 */ 3389 function is_https( $url ) { 3390 return ( 'https' === parse_url( $url, PHP_URL_SCHEME ) ); 3391 } 3392 3393 /** 3382 3394 * Whether SSL login should be forced. 3383 3395 * 3384 3396 * @since 2.6.0