diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index dc4b9b40a2..a876d0e384 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -409,15 +409,15 @@ function list_plugin_updates() { ?>
@@ -429,14 +429,16 @@ function list_plugin_updates() { $plugin_data->Version, $plugin_data->update->new_version ); + echo ' ' . $details . $compat . $upgrade_notice; + if ( in_array( $plugin_file, $auto_updates, true ) ) { echo $auto_update_notice; } ?>
' . $annotation . ''; + } + } elseif ( current_user_can( 'update_core' ) ) { + $compat .= sprintf( + /* translators: %s: URL to WordPress Updates screen. */ + __( 'Please update WordPress.' ), + self_admin_url( 'update-core.php' ) + ); + } elseif ( current_user_can( 'update_php' ) ) { + $compat .= sprintf( + /* translators: %s: URL to Update PHP page. */ + __( 'Learn more about updating PHP.' ), + esc_url( wp_get_update_php_url() ) + ); + + $annotation = wp_get_update_php_annotation(); + + if ( $annotation ) { + $compat .= '
' . $annotation . '';
+ }
+ }
+ } elseif ( ! $compatible_wp ) {
+ $compat .= '
' . __( 'This update doesn’t work with your version of WordPress.' ) . ' ';
+ if ( current_user_can( 'update_core' ) ) {
+ $compat .= sprintf(
+ /* translators: %s: URL to WordPress Updates screen. */
+ __( 'Please update WordPress.' ),
+ self_admin_url( 'update-core.php' )
+ );
+ }
+ } elseif ( ! $compatible_php ) {
+ $compat .= '
' . __( 'This update doesn’t work with your version of PHP.' ) . ' ';
+ if ( current_user_can( 'update_php' ) ) {
+ $compat .= sprintf(
+ /* translators: %s: URL to Update PHP page. */
+ __( 'Learn more about updating PHP.' ),
+ esc_url( wp_get_update_php_url() )
+ );
+
+ $annotation = wp_get_update_php_annotation();
+
+ if ( $annotation ) {
+ $compat .= '
' . $annotation . ''; + } + } + } + + $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) ); ?>
@@ -522,6 +593,9 @@ function list_theme_updates() { $theme->display( 'Version' ), $theme->update['new_version'] ); + + echo ' ' . $compat; + if ( in_array( $stylesheet, $auto_updates, true ) ) { echo $auto_update_notice; } diff --git a/wp-includes/version.php b/wp-includes/version.php index b9c4bcb034..f0f858a45d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-beta4-48653'; +$wp_version = '5.5-beta4-48654'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.