Changeset 48709 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 08/01/2020 07:44:09 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r48654 r48709 55 55 $current = true; 56 56 } 57 57 58 $submit = __( 'Update Now' ); 58 59 $form_action = 'update-core.php?action=do-core-upgrade'; … … 60 61 $mysql_version = $wpdb->db_version(); 61 62 $show_buttons = true; 63 62 64 if ( 'development' === $update->response ) { 63 65 $message = __( 'You are using a development version of WordPress. You can update to the latest nightly build automatically:' ); … … 125 127 } else { 126 128 $message = sprintf( 127 /* translators: 1: URL to WordPress release notes, 2: WordPress version number including locale if necessary. */ 128 __( 'You can update to <a href="%1$s">WordPress %2$s</a> automatically:' ), 129 /* translators: 1: Installed WordPress version number, 2: URL to WordPress release notes, 3: New WordPress version number, including locale if necessary. */ 130 __( 'You can update from WordPress %1$s to <a href="%2$s">WordPress %3$s</a> automatically:' ), 131 $wp_version, 129 132 $version_url, 130 133 $version_string 131 134 ); 132 135 } 136 133 137 if ( ! $mysql_compat || ! $php_compat ) { 134 138 $show_buttons = false; … … 140 144 echo $message; 141 145 echo '</p>'; 146 142 147 echo '<form method="post" action="' . $form_action . '" name="upgrade" class="upgrade">'; 143 148 wp_nonce_field( 'upgrade-core' ); 149 144 150 echo '<p>'; 145 151 echo '<input name="version" value="' . esc_attr( $update->current ) . '" type="hidden"/>'; … … 161 167 } 162 168 echo '</p>'; 169 163 170 if ( 'en_US' !== $update->locale && ( ! isset( $wp_local_package ) || $wp_local_package != $update->locale ) ) { 164 171 echo '<p class="hint">' . __( 'This localized version contains both the translation and various other localization fixes.' ) . '</p>'; … … 171 178 ) . '</p>'; 172 179 } 180 173 181 echo '</form>'; 174 182
Note: See TracChangeset
for help on using the changeset viewer.