Show message when there are no drafts. Props jamierumbelow. fixes #7921
git-svn-id: https://develop.svn.wordpress.org/trunk@9293 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9415f1fa2a
commit
2294054fad
@ -346,7 +346,7 @@ function wp_dashboard_recent_drafts( $drafts = false ) {
|
||||
$drafts =& $drafts_query->posts;
|
||||
}
|
||||
|
||||
if ( $drafts && is_array( $drafts ) ) :
|
||||
if ( $drafts && is_array( $drafts ) ) {
|
||||
$list = array();
|
||||
foreach ( $drafts as $post ) {
|
||||
$url = get_edit_post_link( $draft->ID );
|
||||
@ -359,8 +359,9 @@ function wp_dashboard_recent_drafts( $drafts = false ) {
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
|
||||
endif; // drafts
|
||||
} else {
|
||||
_e('There are no drafts at the moment');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user