From 089d98d09cd83ac07e752f5eaec18f71d19322d8 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 18 Nov 2006 23:12:39 +0000 Subject: [PATCH] AJAX loading of dashboard for slow stuff git-svn-id: http://svn.automattic.com/wordpress/trunk@4484 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/index-extra.php | 67 ++++++++++++++++++++++++++++++++++ wp-admin/index.php | 79 +++++++++++----------------------------- 2 files changed, 88 insertions(+), 58 deletions(-) create mode 100644 wp-admin/index-extra.php diff --git a/wp-admin/index-extra.php b/wp-admin/index-extra.php new file mode 100644 index 000000000..782e0a7e1 --- /dev/null +++ b/wp-admin/index-extra.php @@ -0,0 +1,67 @@ +items) && 1 < count($rss->items) ) { // Technorati returns a 1-item feed when it has no results +?> +

+ +items) && 0 != count($rss->items) ) { +?> +

+items = array_slice($rss->items, 0, 3); +foreach ($rss->items as $item ) { +?> +

'>

+

+ + +items) && 0 != count($rss->items) ) { +?> +

+ +

»

+ \ No newline at end of file diff --git a/wp-admin/index.php b/wp-admin/index.php index c6d2e9130..6573931b2 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -1,9 +1,24 @@ + + @@ -15,22 +30,7 @@ $today = current_time('mysql', 1);

-items) && 0 != count($rss->items) ) { -?> - - + get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 5"); @@ -128,48 +128,11 @@ if (0 < $numcats) $numcats = number_format($numcats);

documentation or visit the support forums."); ?>

-items) && 0 != count($rss->items) ) { -?> -
-

-items = array_slice($rss->items, 0, 3); -foreach ($rss->items as $item ) { -?> -

'>

-

- -
-items) && 0 != count($rss->items) ) { -?> -
-

-
    -items = array_slice($rss->items, 0, 20); -foreach ($rss->items as $item ) { -$title = wp_specialchars($item['title']); -$author = preg_replace( '|(.+?):.+|s', '$1', $item['title'] ); -$post = preg_replace( '|.+?:(.+)|s', '$1', $item['title'] ); -?> -
  • '>
  • - -
-

»

-
- +
+ +
+