Ticket #12763: patch.4.diff

File patch.4.diff, 1.0 KB (added by rooodini, 3 years ago)

add/update checks removed

  • wp-admin/includes/post.php

     
    195195        } 
    196196 
    197197        add_meta( $post_ID ); 
     198        // Update post _edit_last meta data. 
     199        update_post_meta( $post_ID, '_edit_last', $GLOBALS['current_user']->ID ); 
    198200 
    199201        wp_update_post( $post_data ); 
    200202 
     
    547549                return 0; 
    548550 
    549551        add_meta( $post_ID ); 
     552        // Add post _edit_last meta data. 
     553        add_post_meta( $post_ID, '_edit_last', $GLOBALS['current_user']->ID ); 
    550554 
    551555        // Reunite any orphaned attachments with their parent 
    552556        // Does this need to be udpated? ~ Mark 
     
    12031207 
    12041208        $now = time(); 
    12051209 
    1206         if ( !add_post_meta( $post->ID, '_edit_lock', $now, true ) ) 
    1207                 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 ); 
     1210        update_post_meta( $post->ID, '_edit_lock', $now );       
    12101211} 
    12111212 
    12121213/**