Ticket #28172: 28172.patch
File 28172.patch, 868 bytes (added by , 8 years ago) |
---|
-
src/wp-admin/includes/post.php
371 371 } 372 372 } 373 373 374 if ( current_user_can( $ptype->cap->edit_others_posts ) && current_user_can( $ptype->cap->publish_posts ) ) { 375 if ( ! empty( $post_data['sticky'] ) ) 376 stick_post( $post_ID ); 377 else 378 unstick_post( $post_ID ); 379 } 380 374 381 add_meta( $post_ID ); 375 382 376 383 update_post_meta( $post_ID, '_edit_last', get_current_user_id() ); … … 394 401 395 402 wp_set_post_lock( $post_ID ); 396 403 397 if ( current_user_can( $ptype->cap->edit_others_posts ) && current_user_can( $ptype->cap->publish_posts ) ) {398 if ( ! empty( $post_data['sticky'] ) )399 stick_post( $post_ID );400 else401 unstick_post( $post_ID );402 }403 404 404 return $post_ID; 405 405 } 406 406