WordPress.org

Make WordPress Core

Changeset 9785


Ignore:
Timestamp:
11/19/08 12:30:37 (7 years ago)
Author:
azaozz
Message:

Do not show "Post published" message in QuickPress if empty form submitted, fixes #8222

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r9765 r9785  
    291291function wp_dashboard_quick_press() { 
    292292    $drafts = false; 
    293     if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) ) { 
     293    if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) && (int) $_POST['post_ID'] ) { 
    294294        $view = get_permalink( $_POST['post_ID'] ); 
    295295        $edit = clean_url( get_edit_post_link( $_POST['post_ID'] ) ); 
Note: See TracChangeset for help on using the changeset viewer.