Changeset 50506 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 03/08/2021 11:29:37 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r50082 r50506 56 56 } 57 57 58 $is_development_version = preg_match( '/alpha|beta|RC/', $version_string );59 60 58 $message = ''; 61 $submit = $is_development_version ? __( 'Update to latest nightly' ) : __( 'Update now' );62 59 $form_action = 'update-core.php?action=do-core-upgrade'; 63 60 $php_version = phpversion(); 64 61 $mysql_version = $wpdb->db_version(); 65 62 $show_buttons = true; 63 64 // Nightly build versions have two hyphens and a commit number. 65 if ( preg_match( '/-\w+-\d+/', $update->current ) ) { 66 // Retrieve the major version number. 67 preg_match( '/^\d+.\d+/', $update->current, $update_major ); 68 /* translators: %s: WordPress version. */ 69 $submit = sprintf( __( 'Update to latest %s nightly' ), $update_major[0] ); 70 } else { 71 /* translators: %s: WordPress version. */ 72 $submit = sprintf( __( 'Update to version %s' ), $version_string ); 73 } 66 74 67 75 if ( 'development' === $update->response ) {
Note: See TracChangeset
for help on using the changeset viewer.