Ticket #4720: admin-functions.php.diff
| File admin-functions.php.diff, 635 bytes (added by , 19 years ago) |
|---|
-
wp-admin/admin-functions.php
105 105 $_POST['post_date'] = sprintf( "%04d-%02d-%02d %02d:%02d:%02d", $aa, $mm, $jj, $hh, $mn, $ss ); 106 106 $_POST['post_date_gmt'] = get_gmt_from_date( $_POST['post_date'] ); 107 107 } 108 109 unset($_POST['no_filter']); 108 110 109 111 // Create the post. 110 112 $post_ID = wp_insert_post( $_POST ); … … 283 285 delete_meta( $key ); 284 286 } 285 287 288 unset($_POST['no_filter']); 289 286 290 add_meta( $post_ID ); 287 291 288 292 wp_update_post( $_POST );