Ticket #12763: post2.patch
File post2.patch, 1.0 KB (added by , 15 years ago) |
---|
-
wp-admin/includes/post.php
195 195 } 196 196 197 197 add_meta( $post_ID ); 198 //Update Post edit_last meta deta. 199 if ( !add_post_meta( $post_ID, '_edit_last', $GLOBALS['current_user']->ID, true ) ) 200 update_post_meta( $post_ID, '_edit_last', $GLOBALS['current_user']->ID ); 198 201 199 202 wp_update_post( $post_data ); 200 203 … … 547 550 return 0; 548 551 549 552 add_meta( $post_ID ); 553 //Add Post edit_last meta deta. 554 add_post_meta( $post_ID, '_edit_last', $GLOBALS['current_user']->ID ); 550 555 551 556 // Reunite any orphaned attachments with their parent 552 557 // Does this need to be udpated? ~ Mark … … 1205 1210 1206 1211 if ( !add_post_meta( $post->ID, '_edit_lock', $now, true ) ) 1207 1212 update_post_meta( $post->ID, '_edit_lock', $now ); 1208 if ( !add_post_meta( $post->ID, '_edit_last', $current_user->ID, true ) ) 1209 update_post_meta( $post->ID, '_edit_last', $current_user->ID ); 1213 1210 1214 } 1211 1215 1212 1216 /**