From 269c83bd694547af07f759f1412d4228c4d6d15e Mon Sep 17 00:00:00 2001 From: azaozz Date: Wed, 19 Nov 2008 12:30:37 +0000 Subject: [PATCH] Do not show "Post published" message in QuickPress if empty form submitted, fixes #8222 git-svn-id: http://svn.automattic.com/wordpress/trunk@9785 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 2aae4e60a..b47807f52 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -290,7 +290,7 @@ function wp_dashboard_right_now() { function wp_dashboard_quick_press() { $drafts = false; - if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) ) { + if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) && (int) $_POST['post_ID'] ) { $view = get_permalink( $_POST['post_ID'] ); $edit = clean_url( get_edit_post_link( $_POST['post_ID'] ) ); if ( 'post-quickpress-publish' == $_POST['action'] ) {