Changeset 17709
- Timestamp:
- 04/26/2011 05:15:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r17697 r17709 57 57 } 58 58 // set the post_content and status 59 $quick['post_status'] = isset($_POST['publish']) ? 'publish' : 'draft'; 59 if ( isset( $_POST['publish'] ) && current_user_can( 'publish_posts' ) ) 60 $quick['post_status'] = 'publish'; 61 elseif ( isset( $_POST['review'] ) ) 62 $quick['post_status'] = 'pending'; 63 else 64 $quick['post_status'] = 'draft'; 60 65 $quick['post_content'] = $content; 61 66 // error handling for media_sideload
Note: See TracChangeset
for help on using the changeset viewer.