X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..312084b5d95c21feb519ff03decf948420e1f6fa:/wp-admin/index.php diff --git a/wp-admin/index.php b/wp-admin/index.php index 15bc950c..a88b1bc3 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -1,37 +1,25 @@ - -
- -

- -
-

- - - - - - - -
-

- -publish) ) { // with feeds, anyone can tell how many posts there are. Just unlink if !current_user_can - $post_text = sprintf( __ngettext( '%s post', '%s posts', $num_posts->publish ), number_format_i18n( $num_posts->publish ) ); - $post_type_texts[] = $can_edit_posts ? "$post_text" : $post_text; -} -if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can - $post_type_texts[] = ''.sprintf( __ngettext( '%s page', '%s pages', $num_pages->publish ), number_format_i18n( $num_pages->publish ) ).''; -} -if ( $can_edit_posts && !empty($num_posts->draft) ) { - $post_type_texts[] = ''.sprintf( __ngettext( '%s draft', '%s drafts', $num_posts->draft ), number_format_i18n( $num_posts->draft ) ).''; -} -if ( $can_edit_posts && !empty($num_posts->future) ) { - $post_type_texts[] = ''.sprintf( __ngettext( '%s scheduled post', '%s scheduled posts', $num_posts->future ), number_format_i18n( $num_posts->future ) ).''; -} - -if ( current_user_can('publish_posts') && !empty($num_posts->pending) ) { - $pending_text = sprintf( __ngettext( 'There is %2$s post pending your review.', 'There are %2$s posts pending your review.', $num_posts->pending ), 'edit.php?post_status=pending', number_format_i18n( $num_posts->pending ) ); -} else { - $pending_text = ''; -} - -$cats_text = sprintf( __ngettext( '%s category', '%s categories', $num_cats ), number_format_i18n( $num_cats ) ); -$tags_text = sprintf( __ngettext( '%s tag', '%s tags', $num_tags ), number_format_i18n( $num_tags ) ); -if ( current_user_can( 'manage_categories' ) ) { - $cats_text = "$cats_text"; - $tags_text = "$tags_text"; -} - -$post_type_text = implode(', ', $post_type_texts); - -// There is always a category -$sentence = sprintf( __( 'You have %1$s, contained within %2$s and %3$s. %4$s' ), $post_type_text, $cats_text, $tags_text, $pending_text ); -$sentence = apply_filters( 'dashboard_count_sentence', $sentence, $post_type_text, $cats_text, $tags_text, $pending_text ); - -?> -

-$widgets_text"; -?> -

- title, $widgets_text ); ?> - - - - -

- - - -
- -
+ +

- +
- +