Make WordPress Core


Ignore:
Timestamp:
03/04/2008 12:05:30 AM (18 years ago)
Author:
ryan
Message:

Post edit collision detection fixes from mdawaffe. fixes #6043

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r7139 r7146  
    113113    // Now that we have an ID we can fix any attachment anchor hrefs
    114114    _fix_attachment_links( $post_ID );
     115
     116    wp_set_post_lock( $post_ID, $GLOBALS['current_user']->ID );
    115117
    116118    return $post_ID;
     
    322324    _fix_attachment_links( $post_ID );
    323325
     326    wp_set_post_lock( $post_ID, $GLOBALS['current_user']->ID );
     327
    324328    return $post_ID;
    325329}
Note: See TracChangeset for help on using the changeset viewer.