WordPress.org

Make WordPress Core

Ticket #11082: #11082_patch.patch

File #11082_patch.patch, 934 bytes (added by akhilasuram, 6 years ago)
  • page.php

     
    213213        break; 
    214214 
    215215default: 
    216         wp_redirect('edit-pages.php'); 
    217         exit(); 
    218         break; 
     216if(empty( $_POST['quickpress_post_ID'] ) ){ 
     217$post_ID === 0; 
     218 
     219wp_die( __('You attempted to save or publish an empty page.') ); 
     220wp_redirect('page-new.php'); 
     221exit; 
     222} 
     223break; 
    219224} // end switch 
    220225include('admin-footer.php'); 
    221226?> 
  • post.php

     
    255255        break; 
    256256 
    257257default: 
    258         wp_redirect('edit.php'); 
    259         exit(); 
    260         break; 
     258if(empty( $_POST['quickpress_post_ID'] ) ){ 
     259$post_ID === 0; 
     260 
     261wp_die( __('You attempted to save or publish an empty post.') ); 
     262wp_redirect('post-new.php'); 
     263exit; 
     264} 
     265break; 
    261266} // end switch 
    262267include('admin-footer.php'); 
    263268?>