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(