Changeset 49984 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 01/19/2021 04:46:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r49709 r49984 39 39 40 40 $wp_version = get_bloginfo( 'version' ); 41 $version_string = sprintf( '%s– <strong>%s</strong>', $update->current, $update->locale);41 $version_string = sprintf( '%s–%s', $update->current, get_locale() ); 42 42 43 43 if ( 'en_US' === $update->locale && 'en_US' === get_locale() ) { … … 56 56 } 57 57 58 $submit = __( 'Update Now' ); 58 $is_development_version = preg_match( '/alpha|beta|RC/', $version_string ); 59 60 $message = ''; 61 $submit = $is_development_version ? __( 'Update to latest nightly' ) : __( 'Update now' ); 59 62 $form_action = 'update-core.php?action=do-core-upgrade'; 60 63 $php_version = phpversion(); … … 67 70 if ( $current ) { 68 71 /* translators: %s: WordPress version. */ 69 $message = sprintf( __( 'If you need to re-install version %s, you can do so here:' ), $version_string ); 70 $submit = __( 'Re-install Now' ); 72 $submit = sprintf( __( 'Re-install version %s' ), $version_string ); 71 73 $form_action = 'update-core.php?action=do-core-reinstall'; 72 74 } else { … … 933 935 ); 934 936 935 $updates_howto = '<p>' . __( '<strong>WordPress</strong> — Updating your WordPress installation is a simple one-click procedure: just <strong>click on the “Update Now” button</strong> when you are notified that a new version is available.' ) . ' ' . __( 'In most cases, WordPress will automatically apply maintenance and security updates in the background for you.' ) . '</p>';937 $updates_howto = '<p>' . __( '<strong>WordPress</strong> — Updating your WordPress installation is a simple one-click procedure: just <strong>click on the “Update now” button</strong> when you are notified that a new version is available.' ) . ' ' . __( 'In most cases, WordPress will automatically apply maintenance and security updates in the background for you.' ) . '</p>'; 936 938 $updates_howto .= '<p>' . __( '<strong>Themes and Plugins</strong> — To update individual themes or plugins from this screen, use the checkboxes to make your selection, then <strong>click on the appropriate “Update” button</strong>. To update all of your themes or plugins at once, you can check the box at the top of the section to select all before clicking the update button.' ) . '</p>'; 937 939
Note: See TracChangeset
for help on using the changeset viewer.