diff --git a/_inc/lib/class.color.php b/_inc/lib/class.color.php index a57f2009c6a31..e145298c05d97 100644 --- a/_inc/lib/class.color.php +++ b/_inc/lib/class.color.php @@ -9,7 +9,7 @@ * * @author Harold Asbridge * @author Matt Wiebe - * @license http://www.opensource.org/licenses/MIT + * @license https://www.opensource.org/licenses/MIT */ class Jetpack_Color { @@ -125,7 +125,7 @@ public function fromRgbHex($red, $green, $blue) /** * Converts an HSL color value to RGB. Conversion formula - * adapted from http://en.wikipedia.org/wiki/HSL_color_space. + * adapted from https://en.wikipedia.org/wiki/HSL_color_space. * @param int $h Hue. [0-360] * @param in $s Saturation [0, 100] * @param int $l Lightness [0, 100] @@ -321,13 +321,13 @@ public function toHsvInt() } /** - * Converts an RGB color value to HSL. Conversion formula - * adapted from http://en.wikipedia.org/wiki/HSL_color_space. - * Assumes r, g, and b are contained in the set [0, 255] and - * returns h in [0, 360], s in [0, 100], l in [0, 100] - * - * @return Array The HSL representation - */ + * Converts an RGB color value to HSL. Conversion formula + * adapted from https://en.wikipedia.org/wiki/HSL_color_space. + * Assumes r, g, and b are contained in the set [0, 255] and + * returns h in [0, 360], s in [0, 100], l in [0, 100] + * + * @return Array The HSL representation + */ public function toHsl() { list( $r, $g, $b ) = array_values( $this->toRgbInt() ); $r /= 255; $g /= 255; $b /= 255; diff --git a/_inc/lib/class.core-rest-api-endpoints.php b/_inc/lib/class.core-rest-api-endpoints.php index 8a3845ab07133..009120a6a2449 100644 --- a/_inc/lib/class.core-rest-api-endpoints.php +++ b/_inc/lib/class.core-rest-api-endpoints.php @@ -1629,7 +1629,7 @@ public static function get_updateable_data_list( $selector = '' ) { 'jp_group' => 'carousel', ), 'carousel_display_exif' => array( - 'description' => wp_kses( sprintf( __( 'Show photo metadata (Exif) in carousel, when available.', 'jetpack' ) ), array( 'a' => array( 'href' => true, 'target' => true ) ) ), + 'description' => wp_kses( sprintf( __( 'Show photo metadata (Exif) in carousel, when available.', 'jetpack' ) ), array( 'a' => array( 'href' => true, 'target' => true ) ) ), 'type' => 'boolean', 'default' => 0, 'validate_callback' => __CLASS__ . '::validate_boolean', diff --git a/_inc/lib/class.jetpack-password-checker.php b/_inc/lib/class.jetpack-password-checker.php index 14de6053759f9..01b9c61c7d7a6 100644 --- a/_inc/lib/class.jetpack-password-checker.php +++ b/_inc/lib/class.jetpack-password-checker.php @@ -518,7 +518,7 @@ protected function get_char_index( $char ) { * L = String length (the for iterator) * N = Our charset size, via get_charset_size() * - * @see http://en.wikipedia.org/wiki/Password_strength#Random_passwords + * @see https://en.wikipedia.org/wiki/Password_strength#Random_passwords * * On top of the base formula, we're also multiplying the bits of entropy for every char * by 1 - (the probabily of it following the previous char) diff --git a/_inc/lib/debugger/class-jetpack-debugger.php b/_inc/lib/debugger/class-jetpack-debugger.php index 485bcc1cd2d06..4e42e30bb58e8 100644 --- a/_inc/lib/debugger/class-jetpack-debugger.php +++ b/_inc/lib/debugger/class-jetpack-debugger.php @@ -144,9 +144,9 @@ public static function jetpack_debug_display_handler() { ), ) ), - 'http://jetpack.com/support/getting-started-with-jetpack/known-issues/', - 'http://jetpack.com/support/getting-started-with-jetpack/known-issues/', - 'http://jetpack.com/support/', + 'https://jetpack.com/support/getting-started-with-jetpack/known-issues/', + 'https://jetpack.com/support/getting-started-with-jetpack/known-issues/', + 'https://jetpack.com/support/', 'https://wordpress.org/support/plugin/jetpack' ); ?> diff --git a/_inc/lib/icalendar-reader.php b/_inc/lib/icalendar-reader.php index f7e047f9812cc..306f9fffcaef6 100644 --- a/_inc/lib/icalendar-reader.php +++ b/_inc/lib/icalendar-reader.php @@ -895,7 +895,7 @@ protected function sort_by_recent( $list ) { * @return array */ function icalendar_get_events( $url = '', $count = 5 ) { - // Find your calendar's address http://support.google.com/calendar/bin/answer.py?hl=en&answer=37103 + // Find your calendar's address https://support.google.com/calendar/bin/answer.py?hl=en&answer=37103 $ical = new iCalendarReader(); return $ical->get_events( $url, $count ); } diff --git a/_inc/lib/tonesque.php b/_inc/lib/tonesque.php index 17158e3d2b6c1..511c838f6cdc4 100644 --- a/_inc/lib/tonesque.php +++ b/_inc/lib/tonesque.php @@ -1,13 +1,13 @@ $this->trapped_error['status'], ) ); - // ... unless it's 500 ( see http://wp.me/pMz3w-5VV ) + // ... unless it's 500 if ( (int) $args['response'] !== 500 ) { $this->trapped_error['status'] = $args['response']; } diff --git a/class.photon.php b/class.photon.php index 6e351e3005dce..2900994595683 100644 --- a/class.photon.php +++ b/class.photon.php @@ -9,7 +9,7 @@ class Jetpack_Photon { // Oh look, a singleton private static $__instance = null; - // Allowed extensions must match http://code.trac.wordpress.org/browser/photon/index.php#L31 + // Allowed extensions must match https://code.trac.wordpress.org/browser/photon/index.php#L31 protected static $extensions = array( 'gif', 'jpg', diff --git a/functions.compat.php b/functions.compat.php index 4e1f47af4a145..691208586862a 100644 --- a/functions.compat.php +++ b/functions.compat.php @@ -56,7 +56,7 @@ function youtube_sanitize_url( $url ) { $url = trim( $url ); $url = str_replace( array( 'youtu.be/', '/v/', '#!v=', '&', '&', 'playlist' ), array( 'youtu.be/?v=', '/?v=', '?v=', '&', '&', 'videoseries' ), $url ); - // Replace any extra question marks with ampersands - the result of a URL like "http://www.youtube.com/v/9FhMMmqzbD8?fs=1&hl=en_US" being passed in. + // Replace any extra question marks with ampersands - the result of a URL like "https://www.youtube.com/v/9FhMMmqzbD8?fs=1&hl=en_US" being passed in. $query_string_start = strpos( $url, "?" ); if ( false !== $query_string_start ) { diff --git a/functions.opengraph.php b/functions.opengraph.php index 04a776696fc57..cc60770f4fa43 100644 --- a/functions.opengraph.php +++ b/functions.opengraph.php @@ -5,8 +5,8 @@ * Add Open Graph tags so that Facebook (and any other service that supports them) * can crawl the site better and we provide a better sharing experience. * - * @link http://ogp.me/ - * @link http://developers.facebook.com/docs/opengraph/ + * @link https://ogp.me/ + * @link https://developers.facebook.com/docs/opengraph/ * * @package Jetpack */ @@ -95,8 +95,8 @@ function jetpack_og_tags() { $tags['profile:last_name'] = get_the_author_meta( 'last_name', $author->ID ); } } elseif ( is_archive() ) { - $tags['og:type'] = 'website'; - $tags['og:title'] = wp_get_document_title(); + $tags['og:type'] = 'website'; + $tags['og:title'] = wp_get_document_title(); $archive = get_queried_object(); if ( ! empty( $archive ) ) { diff --git a/functions.photon.php b/functions.photon.php index f3e03fe243073..3c7c2f86f3792 100644 --- a/functions.photon.php +++ b/functions.photon.php @@ -3,7 +3,7 @@ /** * Generates a Photon URL. * - * @see http://developer.wordpress.com/docs/photon/ + * @see https://developer.wordpress.com/docs/photon/ * * @param string $image_url URL to the publicly accessible image you want to manipulate * @param array|string $args An array of arguments, i.e. array( 'w' => '300', 'resize' => array( 123, 456 ) ), or in string form (w=123&h=456) @@ -88,7 +88,7 @@ function jetpack_photon_url( $image_url, $args = array(), $scheme = null ) { } // Encode values - // See http://core.trac.wordpress.org/ticket/17923 + // See https://core.trac.wordpress.org/ticket/17923 $args = rawurlencode_deep( $args ); } @@ -273,7 +273,7 @@ function jetpack_photon_url_scheme( $url, $scheme ) { * A wrapper for PHP's parse_url, prepending assumed scheme for network path * URLs. PHP versions 5.4.6 and earlier do not correctly parse without scheme. * - * @see http://php.net/manual/en/function.parse-url.php#refsect1-function.parse-url-changelog + * @see https://php.net/manual/en/function.parse-url.php#refsect1-function.parse-url-changelog * * @param string $url The URL to parse * @param integer $component Retrieve specific URL component diff --git a/json-endpoints/class.wpcom-json-api-update-post-endpoint.php b/json-endpoints/class.wpcom-json-api-update-post-endpoint.php index 80dccac64f66b..43d6fe11ea84d 100644 --- a/json-endpoints/class.wpcom-json-api-update-post-endpoint.php +++ b/json-endpoints/class.wpcom-json-api-update-post-endpoint.php @@ -484,7 +484,7 @@ function write_post( $path, $blog_id, $post_id ) { $insert['ID'] = $post->ID; // wp_update_post ignores date unless edit_date is set - // See: http://codex.wordpress.org/Function_Reference/wp_update_post#Scheduling_posts + // See: https://codex.wordpress.org/Function_Reference/wp_update_post#Scheduling_posts // See: https://core.trac.wordpress.org/browser/tags/3.9.2/src/wp-includes/post.php#L3302 if ( isset( $input['date_gmt'] ) || isset( $input['date'] ) ) { $insert['edit_date'] = true; diff --git a/json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php b/json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php index 3778f16dc74f4..b3d9b98d69af2 100644 --- a/json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php +++ b/json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php @@ -559,7 +559,7 @@ function write_post( $path, $blog_id, $post_id ) { $insert['ID'] = $post->ID; // wp_update_post ignores date unless edit_date is set - // See: http://codex.wordpress.org/Function_Reference/wp_update_post#Scheduling_posts + // See: https://codex.wordpress.org/Function_Reference/wp_update_post#Scheduling_posts // See: https://core.trac.wordpress.org/browser/tags/3.9.2/src/wp-includes/post.php#L3302 if ( isset( $input['date_gmt'] ) || isset( $input['date'] ) ) { $insert['edit_date'] = true; diff --git a/json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php b/json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php index 113766a13553e..f0f2d0446fa15 100644 --- a/json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php +++ b/json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php @@ -530,7 +530,7 @@ function write_post( $path, $blog_id, $post_id ) { $insert['ID'] = $post->ID; // wp_update_post ignores date unless edit_date is set - // See: http://codex.wordpress.org/Function_Reference/wp_update_post#Scheduling_posts + // See: https://codex.wordpress.org/Function_Reference/wp_update_post#Scheduling_posts // See: https://core.trac.wordpress.org/browser/tags/3.9.2/src/wp-includes/post.php#L3302 if ( isset( $input['date_gmt'] ) || isset( $input['date'] ) ) { $insert['edit_date'] = true; diff --git a/load-jetpack.php b/load-jetpack.php index 4a8bb9cd8204c..9242509f511a5 100644 --- a/load-jetpack.php +++ b/load-jetpack.php @@ -72,7 +72,7 @@ function jetpack_should_use_minified_assets() { jetpack_require_lib( 'debugger' ); } -// Play nice with http://wp-cli.org/. +// Play nice with https://wp-cli.org/. if ( defined( 'WP_CLI' ) && WP_CLI ) { require_once JETPACK__PLUGIN_DIR . 'class.jetpack-cli.php'; } @@ -89,7 +89,7 @@ function jetpack_should_use_minified_assets() { /** * Add an easy way to photon-ize a URL that is safe to call even if Jetpack isn't active. * - * See: http://jetpack.com/2013/07/11/photon-and-themes/ + * See: https://jetpack.com/2013/07/11/photon-and-themes/ */ if ( Jetpack::is_module_active( 'photon' ) ) { add_filter( 'jetpack_photon_url', 'jetpack_photon_url', 10, 3 ); diff --git a/modules/carousel/jetpack-carousel.php b/modules/carousel/jetpack-carousel.php index 207e880ad18dc..0bce42d91d4f3 100644 --- a/modules/carousel/jetpack-carousel.php +++ b/modules/carousel/jetpack-carousel.php @@ -792,7 +792,7 @@ function settings_select( $name, $values, $extra_text = '' ) { } function carousel_display_exif_callback() { - $this->settings_checkbox( 'carousel_display_exif', __( 'Show photo metadata (Exif) in carousel, when available.', 'jetpack' ) ); + $this->settings_checkbox( 'carousel_display_exif', __( 'Show photo metadata (Exif) in carousel, when available.', 'jetpack' ) ); } function carousel_display_exif_sanitize( $value ) { diff --git a/modules/comments/comments.php b/modules/comments/comments.php index bf1e4e874320e..3d8023fde47ab 100644 --- a/modules/comments/comments.php +++ b/modules/comments/comments.php @@ -302,7 +302,7 @@ public function comment_form_after() { } $params['sig'] = $signature; - $url_origin = set_url_scheme( 'http://jetpack.wordpress.com' ); + $url_origin = 'https://jetpack.wordpress.com'; $url = "{$url_origin}/jetpack-comment/?" . http_build_query( $params ); $url = "{$url}#parent=" . urlencode( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ) ); $this->signed_url = $url; @@ -364,7 +364,7 @@ public function comment_form_after() { * @since JetpackComments (1.4) */ public function watch_comment_parent() { - $url_origin = set_url_scheme( 'http://jetpack.wordpress.com' ); + $url_origin = 'https://jetpack.wordpress.com'; ?>