From 07f01a2e106ebff527f7bb32efdd9f6814c82355 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 25 Jun 2017 22:06:41 +0000 Subject: [PATCH] Docs: Replace a variety of http links referenced in inline docs with their https counterparts (where possible). Props johnpgreen. Fixes #40732. Built from https://develop.svn.wordpress.org/trunk@40948 git-svn-id: http://core.svn.wordpress.org/trunk@40798 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/freedoms.php | 2 +- wp-admin/includes/dashboard.php | 2 +- wp-content/themes/twentysixteen/functions.php | 2 +- wp-content/themes/twentysixteen/index.php | 2 +- wp-includes/class-wp-hook.php | 18 +++++++++--------- wp-includes/http.php | 8 +++++--- wp-includes/script-loader.php | 2 +- wp-includes/version.php | 2 +- 8 files changed, 20 insertions(+), 18 deletions(-) diff --git a/wp-admin/freedoms.php b/wp-admin/freedoms.php index f39fbc8fc2..963ba5c1fe 100644 --- a/wp-admin/freedoms.php +++ b/wp-admin/freedoms.php @@ -38,7 +38,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
  • -

    check out our trademark guidelines first.' ), 'http://wordpressfoundation.org/trademark-policy/' ); ?>

    +

    check out our trademark guidelines first.' ), 'https://wordpressfoundation.org/trademark-policy/' ); ?>

    {$msg}

    "; - $browsehappy = 'http://browsehappy.com/'; + $browsehappy = 'https://browsehappy.com/'; $locale = get_user_locale(); if ( 'en_US' !== $locale ) $browsehappy = add_query_arg( 'locale', $locale, $browsehappy ); diff --git a/wp-content/themes/twentysixteen/functions.php b/wp-content/themes/twentysixteen/functions.php index 3626af9606..bd576e792a 100644 --- a/wp-content/themes/twentysixteen/functions.php +++ b/wp-content/themes/twentysixteen/functions.php @@ -78,7 +78,7 @@ function twentysixteen_setup() { /* * Enable support for Post Thumbnails on posts and pages. * - * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails + * @link https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 1200, 9999 ); diff --git a/wp-content/themes/twentysixteen/index.php b/wp-content/themes/twentysixteen/index.php index 5e3f2902f3..3f621abef0 100644 --- a/wp-content/themes/twentysixteen/index.php +++ b/wp-content/themes/twentysixteen/index.php @@ -7,7 +7,7 @@ * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * - * @link http://codex.wordpress.org/Template_Hierarchy + * @link https://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage Twenty_Sixteen diff --git a/wp-includes/class-wp-hook.php b/wp-includes/class-wp-hook.php index 80b93ef1e6..a2b6ad991f 100644 --- a/wp-includes/class-wp-hook.php +++ b/wp-includes/class-wp-hook.php @@ -407,7 +407,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @since 4.7.0 * @access public * - * @link http://php.net/manual/en/arrayaccess.offsetexists.php + * @link https://secure.php.net/manual/en/arrayaccess.offsetexists.php * * @param mixed $offset An offset to check for. * @return bool True if the offset exists, false otherwise. @@ -422,7 +422,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @since 4.7.0 * @access public * - * @link http://php.net/manual/en/arrayaccess.offsetget.php + * @link https://secure.php.net/manual/en/arrayaccess.offsetget.php * * @param mixed $offset The offset to retrieve. * @return mixed If set, the value at the specified offset, null otherwise. @@ -437,7 +437,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @since 4.7.0 * @access public * - * @link http://php.net/manual/en/arrayaccess.offsetset.php + * @link https://secure.php.net/manual/en/arrayaccess.offsetset.php * * @param mixed $offset The offset to assign the value to. * @param mixed $value The value to set. @@ -456,7 +456,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @since 4.7.0 * @access public * - * @link http://php.net/manual/en/arrayaccess.offsetunset.php + * @link https://secure.php.net/manual/en/arrayaccess.offsetunset.php * * @param mixed $offset The offset to unset. */ @@ -470,7 +470,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @since 4.7.0 * @access public * - * @link http://php.net/manual/en/iterator.current.php + * @link https://secure.php.net/manual/en/iterator.current.php * * @return array Of callbacks at current priority. */ @@ -484,7 +484,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @since 4.7.0 * @access public * - * @link http://php.net/manual/en/iterator.next.php + * @link https://secure.php.net/manual/en/iterator.next.php * * @return array Of callbacks at next priority. */ @@ -498,7 +498,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @since 4.7.0 * @access public * - * @link http://php.net/manual/en/iterator.key.php + * @link https://secure.php.net/manual/en/iterator.key.php * * @return mixed Returns current priority on success, or NULL on failure */ @@ -512,7 +512,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @since 4.7.0 * @access public * - * @link http://php.net/manual/en/iterator.valid.php + * @link https://secure.php.net/manual/en/iterator.valid.php * * @return boolean */ @@ -526,7 +526,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @since 4.7.0 * @access public * - * @link http://php.net/manual/en/iterator.rewind.php + * @link https://secure.php.net/manual/en/iterator.rewind.php */ public function rewind() { reset( $this->callbacks ); diff --git a/wp-includes/http.php b/wp-includes/http.php index 3e26b08fd8..15ae39d7e7 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -643,11 +643,12 @@ function ms_allowed_http_request_hosts( $is_external, $host ) { * @since 4.4.0 * @since 4.7.0 The $component parameter was added for parity with PHP's parse_url(). * + * @link https://secure.php.net/manual/en/function.parse-url.php + * * @param string $url The URL to parse. * @param int $component The specific component to retrieve. Use one of the PHP * predefined constants to specify which one. * Defaults to -1 (= return all parts as an array). - * @see http://php.net/manual/en/function.parse-url.php * @return mixed False on parse failure; Array of URL components on success; * When a specific component has been requested: null if the component * doesn't exist in the given URL; a string or - in the case of @@ -688,11 +689,12 @@ function wp_parse_url( $url, $component = -1 ) { * * @since 4.7.0 * + * @link https://secure.php.net/manual/en/function.parse-url.php + * * @param array|false $url_parts The parsed URL. Can be false if the URL failed to parse. * @param int $component The specific component to retrieve. Use one of the PHP * predefined constants to specify which one. * Defaults to -1 (= return all parts as an array). - * @see http://php.net/manual/en/function.parse-url.php * @return mixed False on parse failure; Array of URL components on success; * When a specific component has been requested: null if the component * doesn't exist in the given URL; a string or - in the case of @@ -718,7 +720,7 @@ function _get_component_from_parsed_url_array( $url_parts, $component = -1 ) { * * @since 4.7.0 * - * @see http://php.net/manual/en/url.constants.php + * @link https://secure.php.net/manual/en/url.constants.php * * @param int $constant PHP_URL_* constant. * @return string|bool The named key or false. diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index ba52778d2f..7562e2839b 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -956,7 +956,7 @@ function wp_just_in_time_script_localization() { * * @since 4.6.0 * - * @link http://api.jqueryui.com/datepicker/#options + * @link https://api.jqueryui.com/datepicker/#options * * @global WP_Locale $wp_locale The WordPress date and time locale object. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 3b2bf15770..83d3c31d64 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-40947'; +$wp_version = '4.9-alpha-40948'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.