mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Show message when there are no drafts. Props jamierumbelow. fixes #7921
git-svn-id: http://svn.automattic.com/wordpress/trunk@9293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
729539ef94
commit
fe5cd0fa48
@ -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