diff --git a/wp-admin/includes/class-wp-automatic-updater.php b/wp-admin/includes/class-wp-automatic-updater.php index b23545dd60..2d62527a98 100644 --- a/wp-admin/includes/class-wp-automatic-updater.php +++ b/wp-admin/includes/class-wp-automatic-updater.php @@ -1101,23 +1101,34 @@ class WP_Automatic_Updater { $body[] = __( 'These plugins failed to update:' ); foreach ( $failed_updates['plugin'] as $item ) { + $body_message = ''; + $item_url = ''; + + if ( ! empty( $item->item->url ) ) { + $item_url = ' : ' . esc_url( $item->item->url ); + } + if ( $item->item->current_version ) { - $body[] = sprintf( - /* translators: 1: Plugin name, 2: Current version number, 3: New version number. */ - __( '- %1$s (from version %2$s to %3$s)' ), + $body_message .= sprintf( + /* translators: 1: Plugin name, 2: Current version number, 3: New version number, 4: Plugin URL. */ + __( '- %1$s (from version %2$s to %3$s)%4$s' ), $item->name, $item->item->current_version, - $item->item->new_version + $item->item->new_version, + $item_url ); } else { - $body[] = sprintf( - /* translators: 1: Plugin name, 2: Version number. */ - __( '- %1$s version %2$s' ), + $body_message .= sprintf( + /* translators: 1: Plugin name, 2: Version number, 3: Plugin URL. */ + __( '- %1$s version %2$s%3$s' ), $item->name, - $item->item->new_version + $item->item->new_version, + $item_url ); } + $body[] = $body_message; + $past_failure_emails[ $item->item->plugin ] = $item->item->new_version; } @@ -1162,22 +1173,32 @@ class WP_Automatic_Updater { $body[] = __( 'These plugins are now up to date:' ); foreach ( $successful_updates['plugin'] as $item ) { + $body_message = ''; + $item_url = ''; + + if ( ! empty( $item->item->url ) ) { + $item_url = ' : ' . esc_url( $item->item->url ); + } + if ( $item->item->current_version ) { - $body[] = sprintf( - /* translators: 1: Plugin name, 2: Current version number, 3: New version number. */ - __( '- %1$s (from version %2$s to %3$s)' ), + $body_message .= sprintf( + /* translators: 1: Plugin name, 2: Current version number, 3: New version number, 4: Plugin URL. */ + __( '- %1$s (from version %2$s to %3$s)%4$s' ), $item->name, $item->item->current_version, - $item->item->new_version + $item->item->new_version, + $item_url ); } else { - $body[] = sprintf( - /* translators: 1: Plugin name, 2: Version number. */ - __( '- %1$s version %2$s' ), + $body_message .= sprintf( + /* translators: 1: Plugin name, 2: Version number, 3: Plugin URL. */ + __( '- %1$s version %2$s%3$s' ), $item->name, - $item->item->new_version + $item->item->new_version, + $item_url ); } + $body[] = $body_message; unset( $past_failure_emails[ $item->item->plugin ] ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 7106d26fb3..3993ff4c25 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54211'; +$wp_version = '6.1-alpha-54212'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.