X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/ff81ee6e8304a1982a3ec4f5b134764a29d502cf..refs/tags/wordpress-3.5.1:/wp-admin/index.php diff --git a/wp-admin/index.php b/wp-admin/index.php index f5852a39..dd429e7f 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -1,172 +1,138 @@ - -
- -

- -
-

- -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"); -$numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'"); - -if ( $comments || $numcomments ) : -?> -
-

»

- - -

»

- -
- - - - +$help .= '

' . __('WordPress Blog - Latest news from the official WordPress project.') . '

'; +$help .= '

' . __('Other WordPress News - Shows the WordPress Planet feed. You can configure it to show a different feed of your choosing.') . '

'; +if ( ! is_multisite() && current_user_can( 'install_plugins' ) ) + $help .= '

' . __('Plugins - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '

'; +if ( current_user_can( 'edit_theme_options' ) ) + $help .= '

' . __('Welcome - Shows links for some of the most common tasks when setting up a new site.') . '

'; -get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) : -?> -
-

»

- -
- +$screen->add_help_tab( array( + 'id' => 'help-content', + 'title' => __('Content'), + 'content' => $help, +) ); -get_results("SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt > '$today' 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') )) . "
  • "; -} -?> -
-
- +unset( $help ); -
-

-get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'"); -if (0 < $numposts) $numposts = number_format($numposts); +$screen->set_help_sidebar( + '

' . __( 'For more information:' ) . '

' . + '

' . __( 'Documentation on Dashboard' ) . '

' . + '

' . __( 'Support Forums' ) . '

' +); -$numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'"); -if (0 < $numcomms) $numcomms = number_format($numcomms); +include (ABSPATH . 'wp-admin/admin-header.php'); -$numcats = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->categories"); -if (0 < $numcats) $numcats = number_format($numcats); +$today = current_time('mysql', 1); ?> -

posts and %3$s comments, contained within %5$s categories.'), $numposts, 'edit.php', $numcomms, 'edit-comments.php', $numcats, 'categories.php'); ?>

-
- - -
-

- -

+
+ +

+ +user_email != get_option( 'admin_email' ) ); + if ( $hide ) + $classes .= ' hidden'; ?> + +
+ + + +
+ - +
-

great documentation or if that doesn't help 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 ) { -?> -
  • '>
  • - -
-
- -
  -
-
-
+
- +