Changeset 18346 for trunk/wp-admin/includes/post.php
- Timestamp:
- 06/27/2011 03:56:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r18331 r18346 142 142 if ( empty($post_data) ) 143 143 $post_data = &$_POST; 144 145 // Clear out any data in internal vars. 146 if ( isset( $post_data['filter'] ) ) 147 unset( $post_data['filter'] ); 144 148 145 149 $post_ID = (int) $post_data['post_ID']; … … 559 563 return edit_post(); 560 564 } 565 } 566 567 // Edit don't write if we have a post id. 568 if ( isset( $_POST['ID'] ) ) { 569 $_POST['post_ID'] = $_POST['ID']; 570 unset ( $_POST['ID'] ); 571 } 572 if ( isset( $_POST['post_ID'] ) ) { 573 return edit_post(); 561 574 } 562 575
Note: See TracChangeset
for help on using the changeset viewer.