Make WordPress Core

Changeset 18790


Ignore:
Timestamp:
09/27/2011 06:11:30 AM (15 years ago)
Author:
nacin
Message:

wp_set_post_lock() only takes one argument. see #18515.

File:
1 edited

Legend:

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

    r18722 r18790  
    239239        _fix_attachment_links( $post_ID );
    240240
    241         wp_set_post_lock( $post_ID, $GLOBALS['current_user']->ID );
     241        wp_set_post_lock( $post_ID );
    242242
    243243        if ( current_user_can( $ptype->cap->edit_others_posts ) ) {
     
    635635        _fix_attachment_links( $post_ID );
    636636
    637         wp_set_post_lock( $post_ID, $GLOBALS['current_user']->ID );
     637        wp_set_post_lock( $post_ID );
    638638
    639639        return $post_ID;
Note: See TracChangeset for help on using the changeset viewer.