Skip to content

Commit

Permalink
Docs: Update links to https://secure.php.net/, they now redirect to h…
Browse files Browse the repository at this point in the history
…ttps://www.php.net/.

See #48303.

git-svn-id: https://develop.svn.wordpress.org/trunk@47088 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Jan 20, 2020
1 parent 88836de commit a8f4ed6
Show file tree
Hide file tree
Showing 29 changed files with 73 additions and 73 deletions.
4 changes: 2 additions & 2 deletions src/wp-admin/comment.php
Expand Up @@ -207,9 +207,9 @@
$submitted = sprintf(
/* translators: 1: Comment date, 2: Comment time. */
__( '%1$s at %2$s' ),
/* translators: Comment date format. See https://secure.php.net/date */
/* translators: Comment date format. See https://www.php.net/date */
get_comment_date( __( 'Y/m/d' ), $comment ),
/* translators: Comment time format. See https://secure.php.net/date */
/* translators: Comment time format. See https://www.php.net/date */
get_comment_date( __( 'g:i a' ), $comment )
);
if ( 'approved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_post_ID ) ) {
Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/edit-form-advanced.php
Expand Up @@ -169,9 +169,9 @@
$scheduled_date = sprintf(
/* translators: Publish box date string. 1: Date, 2: Time. */
__( '%1$s at %2$s' ),
/* translators: Publish box date format, see https://secure.php.net/date */
/* translators: Publish box date format, see https://www.php.net/date */
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
/* translators: Publish box time format, see https://secure.php.net/date */
/* translators: Publish box time format, see https://www.php.net/date */
date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
);

Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/edit-form-comment.php
Expand Up @@ -106,9 +106,9 @@
$submitted = sprintf(
/* translators: 1: Comment date, 2: Comment time. */
__( '%1$s at %2$s' ),
/* translators: Publish box date format, see https://secure.php.net/date */
/* translators: Publish box date format, see https://www.php.net/date */
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ),
/* translators: Publish box time format, see https://secure.php.net/date */
/* translators: Publish box time format, see https://www.php.net/date */
date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) )
);
?>
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/ajax-actions.php
Expand Up @@ -2197,7 +2197,7 @@ function wp_ajax_find_posts() {
if ( '0000-00-00 00:00:00' == $post->post_date ) {
$time = '';
} else {
/* translators: Date format in table columns, see https://secure.php.net/date */
/* translators: Date format in table columns, see https://www.php.net/date */
$time = mysql2date( __( 'Y/m/d' ), $post->post_date );
}

Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/includes/class-wp-comments-list-table.php
Expand Up @@ -872,9 +872,9 @@ public function column_date( $comment ) {
$submitted = sprintf(
/* translators: 1: Comment date, 2: Comment time. */
__( '%1$s at %2$s' ),
/* translators: Comment date format. See https://secure.php.net/date */
/* translators: Comment date format. See https://www.php.net/date */
get_comment_date( __( 'Y/m/d' ), $comment ),
/* translators: Comment time format. See https://secure.php.net/date */
/* translators: Comment time format. See https://www.php.net/date */
get_comment_date( __( 'g:i a' ), $comment )
);

Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-community-events.php
Expand Up @@ -375,7 +375,7 @@ protected function format_event_data_time( $response_body ) {
* so that users can tell at a glance if the event is on a day they
* are available, without having to open the link.
*/
/* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://secure.php.net/date */
/* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/date */
$response_body['events'][ $key ]['formatted_date'] = date_i18n( __( 'l, M j, Y' ), $timestamp );
$response_body['events'][ $key ]['formatted_time'] = date_i18n( get_option( 'time_format' ), $timestamp );
}
Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/includes/class-wp-filesystem-base.php
Expand Up @@ -319,7 +319,7 @@ public function search_for_folder( $folder, $base = '.', $loop = false ) {
*
* From the PHP documentation page for fileperms().
*
* @link https://secure.php.net/manual/en/function.fileperms.php
* @link https://www.php.net/manual/en/function.fileperms.php
*
* @since 2.5.0
*
Expand Down Expand Up @@ -387,7 +387,7 @@ public function getchmod( $file ) {
* Converts '-rw-r--r--' to 0644
* From "info at rvgate dot nl"'s comment on the PHP documentation for chmod()
*
* @link https://secure.php.net/manual/en/function.chmod.php#49614
* @link https://www.php.net/manual/en/function.chmod.php#49614
*
* @since 2.5.0
*
Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/includes/dashboard.php
Expand Up @@ -950,10 +950,10 @@ function wp_dashboard_recent_posts( $args ) {
} elseif ( gmdate( 'Y-m-d', $time ) == $tomorrow ) {
$relative = __( 'Tomorrow' );
} elseif ( gmdate( 'Y', $time ) !== $year ) {
/* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://secure.php.net/date */
/* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://www.php.net/date */
$relative = date_i18n( __( 'M jS Y' ), $time );
} else {
/* translators: Date and time format for recent posts on the dashboard, see https://secure.php.net/date */
/* translators: Date and time format for recent posts on the dashboard, see https://www.php.net/date */
$relative = date_i18n( __( 'M jS' ), $time );
}

Expand Down
12 changes: 6 additions & 6 deletions src/wp-admin/includes/meta-boxes.php
Expand Up @@ -194,11 +194,11 @@ function post_submit_meta_box( $post, $args = array() ) {
</div><!-- .misc-pub-section -->

<?php
/* translators: Publish box date string. 1: Date, 2: Time. See https://secure.php.net/date */
/* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/date */
$date_string = __( '%1$s at %2$s' );
/* translators: Publish box date format, see https://secure.php.net/date */
/* translators: Publish box date format, see https://www.php.net/date */
$date_format = _x( 'M j, Y', 'publish box date format' );
/* translators: Publish box time format, see https://secure.php.net/date */
/* translators: Publish box time format, see https://www.php.net/date */
$time_format = _x( 'H:i', 'publish box time format' );

if ( 0 != $post->ID ) {
Expand Down Expand Up @@ -382,11 +382,11 @@ function attachment_submit_meta_box( $post ) {
<span id="timestamp">
<?php
$uploaded_on = sprintf(
/* translators: Publish box date string. 1: Date, 2: Time. See https://secure.php.net/date */
/* translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/date */
__( '%1$s at %2$s' ),
/* translators: Publish box date format, see https://secure.php.net/date */
/* translators: Publish box date format, see https://www.php.net/date */
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $post->post_date ) ),
/* translators: Publish box time format, see https://secure.php.net/date */
/* translators: Publish box time format, see https://www.php.net/date */
date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) )
);
/* translators: Attachment information. %s: Date the attachment was uploaded. */
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/misc.php
Expand Up @@ -1195,7 +1195,7 @@ function heartbeat_autosave( $response, $data ) {
'message' => __( 'Error while saving.' ),
);
} else {
/* translators: Draft saved date format, see https://secure.php.net/date */
/* translators: Draft saved date format, see https://www.php.net/date */
$draft_saved_date_format = __( 'g:i:s a' );
$response['wp_autosave'] = array(
'success' => true,
Expand Down
8 changes: 4 additions & 4 deletions src/wp-admin/includes/schema.php
Expand Up @@ -394,7 +394,7 @@ function populate_options( array $options = array() ) {
$gmt_offset = 0;
/*
* translators: default GMT offset or timezone string. Must be either a valid offset (-12 to 14)
* or a valid timezone string (America/New_York). See https://secure.php.net/manual/en/timezones.php
* or a valid timezone string (America/New_York). See https://www.php.net/manual/en/timezones.php
* for all timezone strings supported by PHP.
*/
$offset_or_tz = _x( '0', 'default GMT offset or timezone string' ); // phpcs:ignore WordPress.WP.I18n.NoEmptyStrings
Expand Down Expand Up @@ -429,11 +429,11 @@ function populate_options( array $options = array() ) {
'default_ping_status' => 'open',
'default_pingback_flag' => 1,
'posts_per_page' => 10,
/* translators: Default date format, see https://secure.php.net/date */
/* translators: Default date format, see https://www.php.net/date */
'date_format' => __( 'F j, Y' ),
/* translators: Default time format, see https://secure.php.net/date */
/* translators: Default time format, see https://www.php.net/date */
'time_format' => __( 'g:i a' ),
/* translators: Links last updated date format, see https://secure.php.net/date */
/* translators: Links last updated date format, see https://www.php.net/date */
'links_updated_date_format' => __( 'F j, Y g:i a' ),
'comment_moderation' => 0,
'moderation_notify' => 1,
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/options-general.php
Expand Up @@ -18,7 +18,7 @@

$title = __( 'General Settings' );
$parent_file = 'options-general.php';
/* translators: Date and time format for exact current time, mainly about timezones, see https://secure.php.net/date */
/* translators: Date and time format for exact current time, mainly about timezones, see https://www.php.net/date */
$timezone_format = _x( 'Y-m-d H:i:s', 'timezone date format' );

add_action( 'admin_head', 'options_general_add_js' );
Expand Down
2 changes: 1 addition & 1 deletion src/wp-content/themes/twentytwenty/footer.php
Expand Up @@ -21,7 +21,7 @@
<p class="footer-copyright">&copy;
<?php
echo date_i18n(
/* translators: Copyright date format, see https://secure.php.net/date */
/* translators: Copyright date format, see https://www.php.net/date */
_x( 'Y', 'copyright date format', 'twentytwenty' )
);
?>
Expand Down
18 changes: 9 additions & 9 deletions src/wp-includes/class-wp-hook.php
Expand Up @@ -390,7 +390,7 @@ public static function build_preinitialized_hooks( $filters ) {
*
* @since 4.7.0
*
* @link https://secure.php.net/manual/en/arrayaccess.offsetexists.php
* @link https://www.php.net/manual/en/arrayaccess.offsetexists.php
*
* @param mixed $offset An offset to check for.
* @return bool True if the offset exists, false otherwise.
Expand All @@ -404,7 +404,7 @@ public function offsetExists( $offset ) {
*
* @since 4.7.0
*
* @link https://secure.php.net/manual/en/arrayaccess.offsetget.php
* @link https://www.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.
Expand All @@ -418,7 +418,7 @@ public function offsetGet( $offset ) {
*
* @since 4.7.0
*
* @link https://secure.php.net/manual/en/arrayaccess.offsetset.php
* @link https://www.php.net/manual/en/arrayaccess.offsetset.php
*
* @param mixed $offset The offset to assign the value to.
* @param mixed $value The value to set.
Expand All @@ -436,7 +436,7 @@ public function offsetSet( $offset, $value ) {
*
* @since 4.7.0
*
* @link https://secure.php.net/manual/en/arrayaccess.offsetunset.php
* @link https://www.php.net/manual/en/arrayaccess.offsetunset.php
*
* @param mixed $offset The offset to unset.
*/
Expand All @@ -449,7 +449,7 @@ public function offsetUnset( $offset ) {
*
* @since 4.7.0
*
* @link https://secure.php.net/manual/en/iterator.current.php
* @link https://www.php.net/manual/en/iterator.current.php
*
* @return array Of callbacks at current priority.
*/
Expand All @@ -462,7 +462,7 @@ public function current() {
*
* @since 4.7.0
*
* @link https://secure.php.net/manual/en/iterator.next.php
* @link https://www.php.net/manual/en/iterator.next.php
*
* @return array Of callbacks at next priority.
*/
Expand All @@ -475,7 +475,7 @@ public function next() {
*
* @since 4.7.0
*
* @link https://secure.php.net/manual/en/iterator.key.php
* @link https://www.php.net/manual/en/iterator.key.php
*
* @return mixed Returns current priority on success, or NULL on failure
*/
Expand All @@ -488,7 +488,7 @@ public function key() {
*
* @since 4.7.0
*
* @link https://secure.php.net/manual/en/iterator.valid.php
* @link https://www.php.net/manual/en/iterator.valid.php
*
* @return boolean
*/
Expand All @@ -501,7 +501,7 @@ public function valid() {
*
* @since 4.7.0
*
* @link https://secure.php.net/manual/en/iterator.rewind.php
* @link https://www.php.net/manual/en/iterator.rewind.php
*/
public function rewind() {
reset( $this->callbacks );
Expand Down
4 changes: 2 additions & 2 deletions src/wp-includes/class-wp-http-encoding.php
Expand Up @@ -92,8 +92,8 @@ public static function decompress( $compressed, $length = null ) {
*
* @since 2.8.1
* @link https://core.trac.wordpress.org/ticket/18273
* @link https://secure.php.net/manual/en/function.gzinflate.php#70875
* @link https://secure.php.net/manual/en/function.gzinflate.php#77336
* @link https://www.php.net/manual/en/function.gzinflate.php#70875
* @link https://www.php.net/manual/en/function.gzinflate.php#77336
*
* @param string $gzData String to decompress.
* @return string|bool False on failure.
Expand Down
12 changes: 6 additions & 6 deletions src/wp-includes/class-wp-locale.php
Expand Up @@ -194,17 +194,17 @@ public function init() {
$this->meridiem['PM'] = __( 'PM' );

// Numbers formatting
// See https://secure.php.net/number_format
// See https://www.php.net/number_format

/* translators: $thousands_sep argument for https://secure.php.net/number_format, default is ',' */
/* translators: $thousands_sep argument for https://www.php.net/number_format, default is ',' */
$thousands_sep = __( 'number_format_thousands_sep' );

// Replace space with a non-breaking space to avoid wrapping.
$thousands_sep = str_replace( ' ', '&nbsp;', $thousands_sep );

$this->number_format['thousands_sep'] = ( 'number_format_thousands_sep' === $thousands_sep ) ? ',' : $thousands_sep;

/* translators: $dec_point argument for https://secure.php.net/number_format, default is '.' */
/* translators: $dec_point argument for https://www.php.net/number_format, default is '.' */
$decimal_point = __( 'number_format_decimal_point' );

$this->number_format['decimal_point'] = ( 'number_format_decimal_point' === $decimal_point ) ? '.' : $decimal_point;
Expand Down Expand Up @@ -359,11 +359,11 @@ public function is_rtl() {
* @since 3.6.0
*/
public function _strings_for_pot() {
/* translators: Localized date format, see https://secure.php.net/date */
/* translators: Localized date format, see https://www.php.net/date */
__( 'F j, Y' );
/* translators: Localized time format, see https://secure.php.net/date */
/* translators: Localized time format, see https://www.php.net/date */
__( 'g:i a' );
/* translators: Localized date and time format, see https://secure.php.net/date */
/* translators: Localized date and time format, see https://www.php.net/date */
__( 'F j, Y g:i a' );
}
}
6 changes: 3 additions & 3 deletions src/wp-includes/cron.php
Expand Up @@ -384,7 +384,7 @@ function wp_unschedule_event( $timestamp, $hook, $args = array() ) {
*
* Warning: This function may return Boolean FALSE, but may also return a non-Boolean
* value which evaluates to FALSE. For information about casting to booleans see the
* {@link https://php.net/manual/en/language.types.boolean.php PHP documentation}. Use
* {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use
* the `===` operator for testing the return value of this function.
*
* @since 2.1.0
Expand Down Expand Up @@ -454,7 +454,7 @@ function wp_clear_scheduled_hook( $hook, $args = array() ) {
*
* Warning: This function may return Boolean FALSE, but may also return a non-Boolean
* value which evaluates to FALSE. For information about casting to booleans see the
* {@link https://php.net/manual/en/language.types.boolean.php PHP documentation}. Use
* {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use
* the `===` operator for testing the return value of this function.
*
* @since 4.9.0
Expand Down Expand Up @@ -733,7 +733,7 @@ function spawn_cron( $gmt_time = 0 ) {
*
* Warning: This function may return Boolean FALSE, but may also return a non-Boolean
* value which evaluates to FALSE. For information about casting to booleans see the
* {@link https://php.net/manual/en/language.types.boolean.php PHP documentation}. Use
* {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use
* the `===` operator for testing the return value of this function.
*
* @since 2.1.0
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/default-constants.php
Expand Up @@ -126,7 +126,7 @@ function wp_initial_constants() {
* For example, MONTH_IN_SECONDS wrongly assumes every month has 30 days and
* YEAR_IN_SECONDS does not take leap years into account.
*
* If you need more accuracy please consider using the DateTime class (https://secure.php.net/manual/en/class.datetime.php).
* If you need more accuracy please consider using the DateTime class (https://www.php.net/manual/en/class.datetime.php).
*
* @since 3.5.0
* @since 4.4.0 Introduced `MONTH_IN_SECONDS`.
Expand Down
6 changes: 3 additions & 3 deletions src/wp-includes/deprecated.php
Expand Up @@ -2828,7 +2828,7 @@ function is_blog_user( $blog_id = 0 ) {
* @deprecated 3.4.0 Use error_log()
* @see error_log()
*
* @link https://secure.php.net/manual/en/function.error-log.php
* @link https://www.php.net/manual/en/function.error-log.php
*
* @param string $filename File name.
* @param string $mode Type of access you required to the stream.
Expand All @@ -2846,7 +2846,7 @@ function debug_fopen( $filename, $mode ) {
* @deprecated 3.4.0 Use error_log()
* @see error_log()
*
* @link https://secure.php.net/manual/en/function.error-log.php
* @link https://www.php.net/manual/en/function.error-log.php
*
* @param mixed $fp Unused.
* @param string $string Message to log.
Expand All @@ -2864,7 +2864,7 @@ function debug_fwrite( $fp, $string ) {
* @deprecated 3.4.0 Use error_log()
* @see error_log()
*
* @link https://secure.php.net/manual/en/function.error-log.php
* @link https://www.php.net/manual/en/function.error-log.php
*
* @param mixed $fp Unused.
*/
Expand Down
6 changes: 3 additions & 3 deletions src/wp-includes/formatting.php
Expand Up @@ -2707,7 +2707,7 @@ function untrailingslashit( $string ) {
* Adds slashes to escape strings.
*
* Slashes will first be removed if magic_quotes_gpc is set, see {@link
* https://secure.php.net/magic_quotes} for more details.
* https://www.php.net/magic_quotes} for more details.
*
* @since 0.71
*
Expand Down Expand Up @@ -4397,7 +4397,7 @@ function esc_url_raw( $url, $protocols = null ) {
/**
* Convert entities, while preserving already-encoded entities.
*
* @link https://secure.php.net/htmlentities Borrowed from the PHP Manual user notes.
* @link https://www.php.net/htmlentities Borrowed from the PHP Manual user notes.
*
* @since 1.2.2
*
Expand Down Expand Up @@ -4936,7 +4936,7 @@ function wp_pre_kses_block_attributes( $string, $allowed_html, $allowed_protocol
* @since 5.3.0 Formalized the existing and already documented `...$args` parameter
* by adding it to the function signature.
*
* @link https://secure.php.net/sprintf
* @link https://www.php.net/sprintf
*
* @param string $pattern The string which formatted args are inserted.
* @param mixed ...$args Arguments to be formatted into the $pattern string.
Expand Down

0 comments on commit a8f4ed6

Please sign in to comment.