Changeset 9604 for trunk/wp-admin/includes/post.php
- Timestamp:
- 11/11/2008 02:58:24 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r9596 r9604 216 216 $post_IDs = array_map( intval, (array) $post_data['post'] ); 217 217 218 $reset = array( 'post_author', 'post_status', 'post_password', 'post_parent', 'page_template', 'comment_status', 'ping_status', 'keep_private', 'tags_input', 'post_category' );218 $reset = array( 'post_author', 'post_status', 'post_password', 'post_parent', 'page_template', 'comment_status', 'ping_status', 'keep_private', 'tags_input', 'post_category', 'sticky' ); 219 219 foreach ( $reset as $field ) { 220 220 if ( isset($post_data[$field]) && ( '' == $post_data[$field] || -1 == $post_data[$field] ) ) … … 275 275 $post_data['ID'] = $post_ID; 276 276 $updated[] = wp_update_post( $post_data ); 277 278 if ( current_user_can( 'edit_others_posts' ) && isset( $post_data['sticky'] ) ) { 279 if ( 'sticky' == $post_data['sticky'] ) 280 stick_post( $post_ID ); 281 else 282 unstick_post( $post_ID ); 283 } 284 277 285 } 278 286
Note: See TracChangeset
for help on using the changeset viewer.