Changeset 19441 for trunk/wp-admin/update-core.php
- Timestamp:
- 11/23/2011 11:28:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/update-core.php
r19267 r19441 132 132 */ 133 133 function core_upgrade_preamble() { 134 global $upgrade_error ;134 global $upgrade_error, $wp_version; 135 135 136 136 $updates = get_core_updates(); … … 177 177 } 178 178 echo '</ul>'; 179 echo '<p>' . __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.' ) . '</p>'; 179 if ( $updates ) { 180 echo '<p>' . __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.' ) . '</p>'; 181 } else { 182 list( $normalized_version ) = explode( '-', $wp_version ); 183 echo '<p>' . sprintf( __( '<a href="%s">Learn more about WordPress %s</a>.' ), esc_url( admin_url( 'about.php' ) ), $normalized_version ) . '</p>'; 184 } 180 185 dismissed_updates(); 181 186
Note: See TracChangeset
for help on using the changeset viewer.