WordPress.org

Make WordPress Core

Changeset 7389


Ignore:
Timestamp:
03/18/08 22:49:41 (6 years ago)
Author:
markjaquith
Message:

Show Pending Review posts on the dashboard. props link2caro for the idea. fixes #6290

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r7331 r7389  
    7575} 
    7676 
     77if ( current_user_can('publish_posts') && !empty($num_posts->pending) ) { 
     78    $pending_text = sprintf( __ngettext( 'There is <a href="%1$s">%2$s post</a> pending your review.', 'There is <a href="%1$s">%2$s posts</a> pending your review.', $num_posts->pending ), 'edit.php?post_status=pending', number_format_i18n( $num_posts->pending ) ); 
     79} else { 
     80    $pending_text = ''; 
     81} 
     82 
    7783$cats_text = sprintf( __ngettext( '%s category', '%s categories', $num_cats ), number_format_i18n( $num_cats ) ); 
    7884$tags_text = sprintf( __ngettext( '%s tag', '%s tags', $num_tags ), number_format_i18n( $num_tags ) ); 
     
    8591 
    8692// There is always a category 
    87 $sentence = sprintf( __( 'You have %1$s, contained within %2$s and %3$s.' ), $post_type_text, $cats_text, $tags_text ); 
     93$sentence = sprintf( __( 'You have %1$s, contained within %2$s and %3$s. %4$s' ), $post_type_text, $cats_text, $tags_text, $pending_text ); 
    8894$sentence = apply_filters( 'dashboard_count_sentence', $sentence, $post_type_text, $cats_text, $tags_text ); 
    8995 
Note: See TracChangeset for help on using the changeset viewer.