From dd816fc7404dc12d53dc4aad1cc71e55bee82d1e Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 9 Dec 2008 20:38:44 +0000 Subject: [PATCH] Show 'Post submitted' insted of published when submitting for review from Quick Press. fixes #8547 git-svn-id: http://svn.automattic.com/wordpress/trunk@10154 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 2688a3dfc6..ed668d5ab1 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -292,7 +292,10 @@ function wp_dashboard_quick_press() { $view = get_permalink( $_POST['post_ID'] ); $edit = clean_url( get_edit_post_link( $_POST['post_ID'] ) ); if ( 'post-quickpress-publish' == $_POST['action'] ) { - printf( '

' . __( 'Post Published. View post | Edit post' ) . '

', clean_url( $view ), $edit ); + if ( current_user_can('publish_posts') ) + printf( '

' . __( 'Post Published. View post | Edit post' ) . '

', clean_url( $view ), $edit ); + else + printf( '

' . __( 'Post submitted. Preview post | Edit post' ) . '

', clean_url( add_query_arg( 'preview', 1, $view ) ), $edit ); } else { printf( '

' . __( 'Draft Saved. Preview post | Edit post' ) . '

', clean_url( add_query_arg( 'preview', 1, $view ) ), $edit ); $drafts_query = new WP_Query( array(