Changeset 49712
- Timestamp:
- 11/30/2020 04:51:15 PM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
- Property svn:mergeinfo changed
/trunk merged: 49668,49709
- Property svn:mergeinfo changed
-
branches/5.6/src/wp-admin/update-core.php
r49682 r49712 230 230 global $required_php_version, $required_mysql_version; 231 231 232 $wp_version = get_bloginfo( 'version' ); 233 $updates = get_core_updates(); 234 235 if ( isset( $updates[0] ) && isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) { 232 $updates = get_core_updates(); 233 234 // Include an unmodified $wp_version. 235 require ABSPATH . WPINC . '/version.php'; 236 237 $is_development_version = preg_match( '/alpha|beta|RC/', $wp_version ); 238 239 if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) { 236 240 echo '<h2 class="response">'; 237 241 _e( 'An updated version of WordPress is available.' ); … … 246 250 ); 247 251 echo '</p></div>'; 248 } elseif ( isset( $updates[0] ) && 'development' === $updates[0]->response) {252 } elseif ( $is_development_version ) { 249 253 echo '<h2 class="response">' . __( 'You are using a development version of WordPress.' ) . '</h2>'; 250 254 } else { … … 259 263 } 260 264 echo '</ul>'; 265 261 266 // Don't show the maintenance mode notice when we are only showing a single re-install option. 262 267 if ( $updates && ( count( $updates ) > 1 || 'latest' !== $updates[0]->response ) ) { … … 271 276 ) . '</p>'; 272 277 } 278 273 279 dismissed_updates(); 274 280 }
Note: See TracChangeset
for help on using the changeset viewer.