From bedccdd79dfcf8165235d042df0a4df3c1f13c85 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@10154 602fd350-edb4-49c9-b593-d223f7449a82 --- 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(