Skip to content

Commit

Permalink
Update to WordPress 5.3.2. For more information, see https://wordpres…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantheon Automation authored and greg-1-anderson committed Dec 18, 2019
1 parent bc6935c commit d8a41fd
Show file tree
Hide file tree
Showing 34 changed files with 211 additions and 104 deletions.
25 changes: 25 additions & 0 deletions wp-admin/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,31 @@
<div class="about__section changelog">
<div class="column">
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
_n(
'<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.',
5
),
'5.3.2',
number_format_i18n( 5 )
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.3.2' )
)
);
?>
</p>
<p>
<?php
printf(
Expand Down
10 changes: 7 additions & 3 deletions wp-admin/css/colors/_admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,13 @@ textarea:focus {
.button.active,
.button.active:focus,
.button.active:hover {
border-color: darken( $button-color, 5% );
color: darken( $button-text-color, 5% );
box-shadow: inset 0 2px 5px -3px darken( $button-color, 5% );
border-color: $button-color;
color: darken( #32373c, 5% );
box-shadow: inset 0 2px 5px -3px $button-color;
}

.button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.button-primary {
Expand Down
10 changes: 7 additions & 3 deletions wp-admin/css/colors/blue/colors-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #dd9f32;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #dd9f32;
border-color: #e1a948;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #e1a948;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/blue/colors-rtl.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/blue/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #dd9f32;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #dd9f32;
border-color: #e1a948;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #e1a948;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/blue/colors.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/coffee/colors-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #bf9878;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #bf9878;
border-color: #c7a589;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #c7a589;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/coffee/colors-rtl.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/coffee/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #bf9878;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #bf9878;
border-color: #c7a589;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #c7a589;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/coffee/colors.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/ectoplasm/colors-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #93a43e;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #93a43e;
border-color: #a3b745;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #a3b745;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/ectoplasm/colors-rtl.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/ectoplasm/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #93a43e;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #93a43e;
border-color: #a3b745;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #a3b745;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/ectoplasm/colors.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/light/colors-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #0490b3;
color: #262626;
box-shadow: inset 0 2px 5px -3px #0490b3;
border-color: #04a4cc;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #04a4cc;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/light/colors-rtl.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/light/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #0490b3;
color: #262626;
box-shadow: inset 0 2px 5px -3px #0490b3;
border-color: #04a4cc;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #04a4cc;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/light/colors.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/midnight/colors-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #dd382d;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #dd382d;
border-color: #e14d43;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #e14d43;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/midnight/colors-rtl.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/midnight/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #dd382d;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #dd382d;
border-color: #e14d43;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #e14d43;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/midnight/colors.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/ocean/colors-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #8faf91;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #8faf91;
border-color: #9ebaa0;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #9ebaa0;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/ocean/colors-rtl.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/ocean/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #8faf91;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #8faf91;
border-color: #9ebaa0;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #9ebaa0;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/ocean/colors.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/sunrise/colors-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #d97426;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #d97426;
border-color: #dd823b;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #dd823b;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/sunrise/colors-rtl.min.css

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions wp-admin/css/colors/sunrise/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ textarea:focus {
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
border-color: #d97426;
color: #f2f2f2;
box-shadow: inset 0 2px 5px -3px #d97426;
border-color: #dd823b;
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #dd823b;
}

.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}

.wp-core-ui .button-primary {
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/colors/sunrise/colors.min.css

Large diffs are not rendered by default.

56 changes: 30 additions & 26 deletions wp-includes/feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,55 +649,59 @@ function self_link() {
}

/**
* Get the timestamp of the most recently modified post from WP_Query.
* Get the UTC time of the most recently modified post from WP_Query.
*
* If viewing a comment feed, the timestamp of the most recently modified
* If viewing a comment feed, the time of the most recently modified
* comment will be returned.
*
* @global WP_Query $wp_query WordPress Query object.
*
* @since 5.2.0
*
* @param string $format Format of the timestamp to return, passed to mysql2date.
*
* @return string The timestamp.
* @param string $format Date format string to return the time in.
* @return string|false The time in requested format, or false on failure.
*/
function get_feed_build_date( $format ) {
global $wp_query;

if ( empty( $wp_query ) || ! $wp_query->have_posts() ) {
// Fallback to last time any post was modified or published.
return get_lastpostmodified( 'GMT' );
}
$datetime = false;
$max_modified_time = false;
$utc = new DateTimeZone( 'UTC' );

// Extract the post modified times from the posts.
$modified_times = wp_list_pluck( $wp_query->posts, 'post_modified_gmt' );
if ( ! empty( $wp_query ) && $wp_query->have_posts() ) {
// Extract the post modified times from the posts.
$modified_times = wp_list_pluck( $wp_query->posts, 'post_modified_gmt' );

// If this is a comment feed, check those objects too.
if ( $wp_query->is_comment_feed() && $wp_query->comment_count ) {
// Extract the comment modified times from the comments.
$comment_times = wp_list_pluck( $wp_query->comments, 'comment_date_gmt' );
// If this is a comment feed, check those objects too.
if ( $wp_query->is_comment_feed() && $wp_query->comment_count ) {
// Extract the comment modified times from the comments.
$comment_times = wp_list_pluck( $wp_query->comments, 'comment_date_gmt' );

// Add the comment times to the post times for comparison.
$modified_times = array_merge( $modified_times, $comment_times );
}

// Add the comment times to the post times for comparison.
$modified_times = array_merge( $modified_times, $comment_times );
// Determine the maximum modified time.
$datetime = date_create_immutable_from_format( 'Y-m-d H:i:s', max( $modified_times ), $utc );
}

// Determine the maximum modified time.
$datetime = date_create_immutable_from_format(
'Y-m-d H:i:s',
max( $modified_times ),
new DateTimeZone( 'UTC' )
);
if ( false === $datetime ) {
// Fall back to last time any post was modified or published.
$datetime = date_create_immutable_from_format( 'Y-m-d H:i:s', get_lastpostmodified( 'GMT' ), $utc );
}

$max_modified_time = $datetime->format( $format );
if ( false !== $datetime ) {
$max_modified_time = $datetime->format( $format );
}

/**
* Filters the date the last post or comment in the query was modified.
*
* @since 5.2.0
*
* @param string $max_modified_time Date the last post or comment was modified in the query.
* @param string $format The date format requested in get_feed_build_date.
* @param string|false $max_modified_time Date the last post or comment was modified in the query, in UTC.
* False on failure.
* @param string $format The date format requested in get_feed_build_date().
*/
return apply_filters( 'get_feed_build_date', $max_modified_time, $format );
}
Expand Down
Loading

0 comments on commit d8a41fd

Please sign in to comment.