Changeset 8375
- Timestamp:
- 07/19/2008 03:31:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/wp-app.php
r8267 r8375 395 395 396 396 $publish = (isset($parsed->draft) && trim($parsed->draft) == 'yes') ? false : true; 397 $post_status = ($publish) ? 'publish' : 'draft'; 397 398 398 399 extract($entry); … … 407 408 $post_modified = $pubtimes[0]; 408 409 $post_modified_gmt = $pubtimes[1]; 409 410 // let's not go backwards and make something draft again.411 if(!$publish && $post_status == 'draft') {412 $post_status = ($publish) ? 'publish' : 'draft';413 } elseif($publish) {414 $post_status = 'publish';415 }416 410 417 411 $postdata = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt', 'post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt');
Note: See TracChangeset
for help on using the changeset viewer.