+ ?>
+ <div class="wrap">
+ <h1><?php _e( 'WordPress Updates' ); ?></h1>
+ <?php
+ if ( $upgrade_error ) {
+ echo '<div class="error"><p>';
+ if ( $upgrade_error == 'themes' )
+ _e('Please select one or more themes to update.');
+ else
+ _e('Please select one or more plugins to update.');
+ echo '</p></div>';
+ }
+
+ $last_update_check = false;
+ $current = get_site_transient( 'update_core' );
+
+ if ( $current && isset ( $current->last_checked ) ) {
+ $last_update_check = $current->last_checked + get_option( 'gmt_offset' ) * HOUR_IN_SECONDS;
+ }
+
+ echo '<p>';
+ /* translators: %1 date, %2 time. */
+ printf( __( 'Last checked on %1$s at %2$s.' ), date_i18n( __( 'F j, Y' ), $last_update_check ), date_i18n( __( 'g:i a' ), $last_update_check ) );
+ echo ' <a class="button" href="' . esc_url( self_admin_url('update-core.php?force-check=1') ) . '">' . __( 'Check Again' ) . '</a>';
+ echo '</p>';
+
+ if ( $core = current_user_can( 'update_core' ) )
+ core_upgrade_preamble();
+ if ( $plugins = current_user_can( 'update_plugins' ) )
+ list_plugin_updates();
+ if ( $themes = current_user_can( 'update_themes' ) )
+ list_theme_updates();
+ if ( $core || $plugins || $themes )
+ list_translation_updates();
+ unset( $core, $plugins, $themes );
+ /**
+ * Fires after the core, plugin, and theme update tables.
+ *
+ * @since 2.9.0
+ */
+ do_action( 'core_upgrade_preamble' );
+ echo '</div>';
+
+ wp_localize_script( 'updates', '_wpUpdatesItemCounts', array(
+ 'totals' => wp_get_update_data(),
+ ) );
+