Changeset 13769 for trunk/wp-app.php
- Timestamp:
- 03/19/2010 09:15:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-app.php
r13427 r13769 413 413 } 414 414 415 $publish = (isset($entry->draft) && trim($entry->draft) == 'yes') ? false : true;415 $publish = ! ( isset( $entry->draft ) && 'yes' == trim( $entry->draft ) ); 416 416 417 417 $cap = ($publish) ? 'publish_posts' : 'edit_posts'; … … 506 506 $this->auth_required(__('Sorry, you do not have the right to edit this post.')); 507 507 508 $publish = (isset($parsed->draft) && trim($parsed->draft) == 'yes') ? false : true;508 $publish = ! ( isset($parsed->draft) && 'yes' == trim($parsed->draft) ); 509 509 $post_status = ($publish) ? 'publish' : 'draft'; 510 510
Note: See TracChangeset
for help on using the changeset viewer.