Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HTTP references to HTTPS #13306

Merged
merged 7 commits into from
Aug 23, 2019
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions _inc/lib/class.color.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @author Harold Asbridge <hasbridge@gmail.com>
* @author Matt Wiebe <wiebe@automattic.com>
* @license http://www.opensource.org/licenses/MIT
* @license https://www.opensource.org/licenses/MIT
*/

class Jetpack_Color {
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion _inc/lib/class.core-rest-api-endpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ public static function get_updateable_data_list( $selector = '' ) {
'jp_group' => 'carousel',
),
'carousel_display_exif' => array(
'description' => wp_kses( sprintf( __( 'Show photo metadata (<a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format" target="_blank">Exif</a>) in carousel, when available.', 'jetpack' ) ), array( 'a' => array( 'href' => true, 'target' => true ) ) ),
'description' => wp_kses( sprintf( __( 'Show photo metadata (<a href="https://en.wikipedia.org/wiki/Exchangeable_image_file_format" target="_blank">Exif</a>) in carousel, when available.', 'jetpack' ) ), array( 'a' => array( 'href' => true, 'target' => true ) ) ),
'type' => 'boolean',
'default' => 0,
'validate_callback' => __CLASS__ . '::validate_boolean',
Expand Down
2 changes: 1 addition & 1 deletion _inc/lib/class.jetpack-password-checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions _inc/lib/debugger/class-jetpack-debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
?>
Expand Down
2 changes: 1 addition & 1 deletion _inc/lib/icalendar-reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down
6 changes: 3 additions & 3 deletions _inc/lib/tonesque.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
/*
Plugin Name: Tonesque
Plugin URI: http://automattic.com/
Plugin URI: https://automattic.com/
Description: Grab an average color representation from an image.
Version: 1.0
Author: Automattic, Matias Ventura
Author URI: http://automattic.com/
Author URI: https://automattic.com/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

class Tonesque {
Expand Down
4 changes: 2 additions & 2 deletions class.json-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ function output( $status_code, $response = null, $content_type = 'application/js
if ( $callback ) {
// Mitigate Rosetta Flash [1] by setting the Content-Type-Options: nosniff header
// and by prepending the JSONP response with a JS comment.
// [1] http://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/
// [1] https://blog.miki.it/2014/7/8/abusing-jsonp-with-rosetta-flash/index.html
echo "/**/$callback(";

}
Expand Down Expand Up @@ -742,7 +742,7 @@ function wp_die_handler( $message, $title = '', $args = array() ) {
'response' => $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'];
}
Expand Down
2 changes: 1 addition & 1 deletion class.photon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion functions.compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function youtube_sanitize_url( $url ) {
$url = trim( $url );
$url = str_replace( array( 'youtu.be/', '/v/', '#!v=', '&amp;', '&#038;', '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 ) {
Expand Down
8 changes: 4 additions & 4 deletions functions.opengraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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 ) ) {
Expand Down
6 changes: 3 additions & 3 deletions functions.photon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 );
}

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions load-jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand All @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion modules/carousel/jetpack-carousel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 (<a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format" rel="noopener noreferrer" target="_blank">Exif</a>) in carousel, when available.', 'jetpack' ) );
$this->settings_checkbox( 'carousel_display_exif', __( 'Show photo metadata (<a href="https://en.wikipedia.org/wiki/Exchangeable_image_file_format" rel="noopener noreferrer" target="_blank">Exif</a>) in carousel, when available.', 'jetpack' ) );
}

function carousel_display_exif_sanitize( $value ) {
Expand Down
4 changes: 2 additions & 2 deletions modules/comments/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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';
?>

<!--[if IE]>
Expand Down
2 changes: 1 addition & 1 deletion modules/contact-form/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function grunion_admin_css() {
* Hack a 'Bulk Delete' option for bulk edit in spam view
*
* There isn't a better way to do this until
* http://core.trac.wordpress.org/changeset/17297 is resolved
* https://core.trac.wordpress.org/changeset/17297 is resolved
*/
add_action( 'admin_head', 'grunion_add_bulk_edit_option' );
function grunion_add_bulk_edit_option() {
Expand Down
6 changes: 3 additions & 3 deletions modules/contact-form/grunion-contact-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
/*
Plugin Name: Grunion Contact Form
Description: Add a contact form to any post, page or text widget. Emails will be sent to the post's author by default, or any email address you choose. As seen on WordPress.com.
Plugin URI: http://automattic.com/#
Plugin URI: https://automattic.com/#
AUthor: Automattic, Inc.
Author URI: http://automattic.com/
Author URI: https://automattic.com/
Version: 2.4
License: GPLv2 or later
*/
Expand Down Expand Up @@ -1406,7 +1406,7 @@ function download_feedback_as_csv() {
*
* Additionally, Excel exposes the ability to launch arbitrary commands through the DDE protocol.
*
* @see http://www.contextis.com/resources/blog/comma-separated-vulnerabilities/
* @see https://www.contextis.com/en/blog/comma-separated-vulnerabilities
*
* @param string $field
*
Expand Down
2 changes: 1 addition & 1 deletion modules/contact-form/grunion-editor-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/*
* A prototype to allow inline editing / editor views for contact forms.\
*
* Originally developed in: http://github.com/automattic/gm2016-grunion-editor
* Originally developed in: https://github.com/automattic/gm2016-grunion-editor
* Authors: Michael Arestad, Andrew Ozz, and George Stephanis
*/

Expand Down
2 changes: 1 addition & 1 deletion modules/custom-content-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function jetpack_cpt_section_callback() {
?>
<p>
<?php esc_html_e( 'Use these settings to display different types of content on your site.', 'jetpack' ); ?>
<a target="_blank" href="http://jetpack.com/support/custom-content-types/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
<a target="_blank" href="https://jetpack.com/support/custom-content-types/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a>
</p>
<?php
}
Expand Down
6 changes: 3 additions & 3 deletions modules/custom-css/csstidy/class.csstidy.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
* @license https://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
* @package csstidy
* @author Florian Schmitz (floele at gmail dot com) 2005-2007
* @author Brett Zamir (brettz9 at yahoo dot com) 2007
Expand Down Expand Up @@ -64,7 +64,7 @@
* In opposite to most other CSS parsers, it does not use regular expressions and
* thus has full CSS2 support and a higher reliability.
* Additional to that it applies some optimisations and fixes to the CSS code.
* An online version should be available here: http://cdburnerxp.se/cssparse/css_optimiser.php
* An online version should be available here: https://cdburnerxp.se/cssparse/css_optimiser.php
* @package csstidy
* @author Florian Schmitz (floele at gmail dot com) 2005-2006
* @version 1.3.1
Expand Down
4 changes: 2 additions & 2 deletions modules/custom-css/csstidy/class.csstidy_ctype.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* along with CSSTidy; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @license https://opensource.org/licenses/gpl-license.php GNU Public License
* @package csstidy
* @author Nikolay Matsievsky (speed at webo dot name) 2009-2010
* @version 1.0
Expand All @@ -43,4 +43,4 @@ function ctype_alpha($text) {
}

}
?>
?>
4 changes: 2 additions & 2 deletions modules/custom-css/csstidy/class.csstidy_optimise.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
* @license https://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
* @package csstidy
* @author Florian Schmitz (floele at gmail dot com) 2005-2007
* @author Brett Zamir (brettz9 at yahoo dot com) 2007
Expand Down
4 changes: 2 additions & 2 deletions modules/custom-css/csstidy/class.csstidy_print.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
* @license https://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
* @package csstidy
* @author Florian Schmitz (floele at gmail dot com) 2005-2007
* @author Brett Zamir (brettz9 at yahoo dot com) 2007
Expand Down
2 changes: 1 addition & 1 deletion modules/custom-css/csstidy/data.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* along with CSSTidy; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @license https://opensource.org/licenses/gpl-license.php GNU Public License
* @package csstidy
* @author Florian Schmitz (floele at gmail dot com) 2005
* @author Nikolay Matsievsky (speed at webo dot name) 2010
Expand Down