From b7546017ad2ab2e736f26404d874374b73106873 Mon Sep 17 00:00:00 2001 From: Andrew Ozz 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: https://develop.svn.wordpress.org/trunk@9785 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 2aae4e60a2..b47807f528 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'] ) {