| 136 | | echo '<p>'; |
| 137 | | /* translators: %1 date, %2 time. */ |
| 138 | | printf( __('Last checked on %1$s at %2$s.'), date_i18n( get_option( 'date_format' ) ), date_i18n( get_option( 'time_format' ) ) ); |
| 139 | | echo ' <a class="button" href="' . esc_url( self_admin_url('update-core.php') ) . '">' . __( 'Check Again' ) . '</a>'; |
| 140 | | echo '</p>'; |
| 141 | | |
| 142 | | if ( !isset($updates[0]->response) || 'latest' == $updates[0]->response ) { |
| 143 | | echo '<h3>'; |
| 144 | | _e('You have the latest version of WordPress.'); |
| 145 | | echo '</h3>'; |
| 146 | | } else { |
| | 128 | // Hide core updater if running an SVN check-out |
| | 129 | if ( file_exists( '.svn' ) ) { |
| 156 | | echo '<ul class="core-updates">'; |
| 157 | | $alternate = true; |
| 158 | | foreach( (array) $updates as $update ) { |
| 159 | | echo '<li>'; |
| 160 | | list_core_update( $update ); |
| 161 | | echo '</li>'; |
| | 144 | echo '<p>'; |
| | 145 | /* translators: %1 date, %2 time. */ |
| | 146 | printf( __('Last checked on %1$s at %2$s.'), date_i18n( get_option( 'date_format' ) ), date_i18n( get_option( 'time_format' ) ) ); |
| | 147 | echo ' <a class="button" href="' . esc_url( self_admin_url('update-core.php') ) . '">' . __( 'Check Again' ) . '</a>'; |
| | 148 | echo '</p>'; |
| | 149 | |
| | 150 | if ( !isset($updates[0]->response) || 'latest' == $updates[0]->response ) { |
| | 151 | echo '<h3>'; |
| | 152 | _e('You have the latest version of WordPress.'); |
| | 153 | echo '</h3>'; |
| | 154 | } else { |
| | 155 | echo '<div class="updated inline"><p>'; |
| | 156 | _e('<strong>Important:</strong> before updating, please <a href="http://codex.wordpress.org/WordPress_Backups">back up your database and files</a>. For help with updates, visit the <a href="http://codex.wordpress.org/Updating_WordPress">Updating WordPress</a> Codex page.'); |
| | 157 | echo '</p></div>'; |
| | 158 | |
| | 159 | echo '<h3 class="response">'; |
| | 160 | _e( 'An updated version of WordPress is available.' ); |
| | 161 | echo '</h3>'; |
| | 162 | } |
| | 163 | |
| | 164 | echo '<ul class="core-updates">'; |
| | 165 | $alternate = true; |
| | 166 | foreach( (array) $updates as $update ) { |
| | 167 | echo '<li>'; |
| | 168 | list_core_update( $update ); |
| | 169 | echo '</li>'; |
| | 170 | } |
| | 171 | echo '</ul>'; |
| | 172 | 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>'; |
| | 173 | dismissed_updates(); |