Ticket #11082: #11082_patch.patch
| File #11082_patch.patch, 934 bytes (added by akhilasuram, 3 years ago) |
|---|
-
page.php
213 213 break; 214 214 215 215 default: 216 wp_redirect('edit-pages.php'); 217 exit(); 218 break; 216 if(empty( $_POST['quickpress_post_ID'] ) ){ 217 $post_ID === 0; 218 219 wp_die( __('You attempted to save or publish an empty page.') ); 220 wp_redirect('page-new.php'); 221 exit; 222 } 223 break; 219 224 } // end switch 220 225 include('admin-footer.php'); 221 226 ?> -
post.php
255 255 break; 256 256 257 257 default: 258 wp_redirect('edit.php'); 259 exit(); 260 break; 258 if(empty( $_POST['quickpress_post_ID'] ) ){ 259 $post_ID === 0; 260 261 wp_die( __('You attempted to save or publish an empty post.') ); 262 wp_redirect('post-new.php'); 263 exit; 264 } 265 break; 261 266 } // end switch 262 267 include('admin-footer.php'); 263 268 ?>
