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
This commit is contained in:
Andrew Ozz 2008-11-19 12:30:37 +00:00
parent 59ab1f6366
commit b7546017ad
1 changed files with 1 additions and 1 deletions

View File

@ -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'] ) {