diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index 47f4b6ae52..3a8c14b9c5 100644
|
a
|
b
|
function core_upgrade_preamble() { |
| 231 | 231 | |
| 232 | 232 | $wp_version = get_bloginfo( 'version' ); |
| 233 | 233 | $updates = get_core_updates(); |
| | 234 | preg_match( '/(alpha|beta|RC)(\d+)/', $wp_version, $development ); |
| 234 | 235 | |
| 235 | 236 | if ( isset( $updates[0] ) && isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) { |
| 236 | 237 | echo '<h2 class="response">'; |
| … |
… |
function core_upgrade_preamble() { |
| 245 | 246 | __( 'https://wordpress.org/support/article/updating-wordpress/' ) |
| 246 | 247 | ); |
| 247 | 248 | echo '</p></div>'; |
| 248 | | } elseif ( isset( $updates[0] ) && 'development' === $updates[0]->response ) { |
| | 249 | } elseif ( ! empty( $development ) ) { |
| 249 | 250 | echo '<h2 class="response">' . __( 'You are using a development version of WordPress.' ) . '</h2>'; |
| 250 | 251 | } else { |
| 251 | 252 | echo '<h2 class="response">' . __( 'You have the latest version of WordPress.' ) . '</h2>'; |