Changeset 12370 for trunk/wp-admin/press-this.php
- Timestamp:
- 12/10/2009 11:11:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r12361 r12370 44 44 $quick['post_status'] = 'draft'; // set as draft first 45 45 $quick['post_category'] = isset($_POST['post_category']) ? $_POST['post_category'] : null; 46 $quick['tax_input'] = isset($_POST['tax_input']) ? $_POST['tax_input'] : null;47 $quick['post_title'] = ( trim($_POST['title']) != '' ) ? $_POST['title'] : '';48 $quick['post_content'] = isset($_POST['post_content']) ? $_POST['post_content'] : '';46 $quick['tax_input'] = isset($_POST['tax_input']) ? $_POST['tax_input'] : ''; 47 $quick['post_title'] = isset($_POST['title']) ? $_POST['title'] : ''; 48 $quick['post_content'] = ''; 49 49 50 50 // insert the post with nothing in it, to get an ID … … 69 69 // error handling for $post 70 70 if ( is_wp_error($post_ID)) { 71 wp_die($id); 71 72 wp_delete_post($post_ID); 72 wp_die($id);73 73 // error handling for media_sideload 74 74 } elseif ( is_wp_error($upload)) { 75 wp_die($upload); 75 76 wp_delete_post($post_ID); 76 wp_die($upload);77 77 } else { 78 78 $quick['ID'] = $post_ID;
Note: See TracChangeset
for help on using the changeset viewer.