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
This commit is contained in:
azaozz 2008-11-19 12:30:37 +00:00
parent ec0a4a9ebf
commit 269c83bd69
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() { function wp_dashboard_quick_press() {
$drafts = false; $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'] ); $view = get_permalink( $_POST['post_ID'] );
$edit = clean_url( get_edit_post_link( $_POST['post_ID'] ) ); $edit = clean_url( get_edit_post_link( $_POST['post_ID'] ) );
if ( 'post-quickpress-publish' == $_POST['action'] ) { if ( 'post-quickpress-publish' == $_POST['action'] ) {