diff --git a/wp-admin/index-extra.php b/wp-admin/index-extra.php index 31f2a5816..b7b900654 100644 --- a/wp-admin/index-extra.php +++ b/wp-admin/index-extra.php @@ -9,12 +9,12 @@ switch ( $_GET['jax'] ) { case 'incominglinks' : $rss_feed = apply_filters( 'dashboard_incoming_links_feed', 'http://blogsearch.google.com/blogsearch_feeds?hl=en&scoring=d&ie=utf-8&num=10&output=rss&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ); -$more_link = apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ); + $rss = @fetch_rss( $rss_feed ); if ( isset($rss->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); + +$rss->items = array_slice($rss->items, 0, 2); foreach ($rss->items as $item ) { ?> -

'>

+

'>

-

+

-
-

+
+

- +get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish'" ); + +$num_pages = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'page' AND post_status = 'publish'" ); + +$num_drafts = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft'" ); + +$num_future = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'future'" ); + +$num_comments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'"); + +$num_cats = wp_count_terms('category'); + +$num_tags = wp_count_terms('post_tag'); + +$sentence = 'You have '; +if ( $num_posts ) + $sentence .= '' . number_format( $num_posts ) . ' posts, '; + +if ( $num_pages ) + $sentence .= '' . number_format( $num_pages ) . ' pages, '; + +if ( $num_drafts ) + $sentence .= '' . number_format( $num_drafts ) . ' drafts, '; + +if ( $num_future ) + $sentence .= '' . number_format( $num_future ) . ' scheduled posts, '; + +// There is always a category +$sentence .= 'contained within ' . number_format( $num_cats ) . ' categories and ' . number_format( $num_tags ) . ' tags.'; + +?> +

+ +

You use the title; ?> theme with widgets. Change Theme. You're using BetaPress TODO.

+ + +
+ +
+ +
+ +

Recent Comments

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"); @@ -38,8 +87,6 @@ $numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE commen if ( $comments || $numcomments ) : ?> -
-

»' ), 'edit-comments.php' ); ?>

@@ -56,14 +103,27 @@ foreach ($comments as $comment) { } ?> -
+
+ +
get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND " . get_private_posts_cap_sql('post') . " AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) : +$more_link = apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ); ?> -
-

»' ), 'edit.php' ); ?>

+
| Edit
+

Incoming Links

+ + +
+ +
+get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND " . get_private_posts_cap_sql('post') . " AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5"); +?> +
| Edit
+

Recent Posts

+
- -get_results("SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'future' ORDER BY post_date ASC") ) : -?> -
-

-
    -post_title == '') - $post->post_title = sprintf(__('Post #%s'), $post->ID); - echo "
  • " . sprintf(__('%1$s in %2$s'), "$post->post_title", human_time_diff( current_time('timestamp', 1), strtotime($post->post_date_gmt. ' GMT') )) . "
  • "; -} -?> -
-
- - -
-

-get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish'"); -$numcomms = (int) $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'"); -$numcats = wp_count_terms('category'); -$numtags = wp_count_terms('post_tag'); - -$post_str = sprintf(__ngettext('%1$s post', '%1$s posts', $numposts), number_format_i18n($numposts), 'edit.php'); -$comm_str = sprintf(__ngettext('%1$s comment', '%1$s comments', $numcomms), number_format_i18n($numcomms), 'edit-comments.php'); -$cat_str = sprintf(__ngettext('%1$s category', '%1$s categories', $numcats), number_format_i18n($numcats), 'categories.php'); -$tag_str = sprintf(__ngettext('%1$s tag', '%1$s tags', $numtags), number_format_i18n($numtags)); -?> - -

-
- - -
- -

- - -

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

+
+
| Edit | RSS
+

+
+ + + +

Customize this page.

+ +
+