WordPress.org

Make WordPress Core

Changeset 33544


Ignore:
Timestamp:
08/03/2015 09:12:16 PM (4 years ago)
Author:
ocean90
Message:

Heartbeat: Ensure post locks are released.

Merge of [33542] to the 4.1 branch.

Location:
branches/4.1/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/src/wp-admin/includes/post.php

    r30791 r33544  
    14741474        if ( $override ) {
    14751475            ?>
    1476             <a class="button button-primary wp-tab-last" href="<?php echo esc_url( add_query_arg( 'get-post-lock', '1', get_edit_post_link( $post->ID, 'url' ) ) ); ?>"><?php _e('Take over'); ?></a>
     1476            <a class="button button-primary wp-tab-last" href="<?php echo esc_url( add_query_arg( 'get-post-lock', '1', wp_nonce_url( get_edit_post_link( $post->ID, 'url' ), 'lock-post_' . $post->ID ) ) ); ?>"><?php _e('Take over'); ?></a>
    14771477            <?php
    14781478        }
  • branches/4.1/src/wp-admin/post.php

    r33375 r33544  
    159159
    160160    if ( ! empty( $_GET['get-post-lock'] ) ) {
     161        check_admin_referer( 'lock-post_' . $post_id );
    161162        wp_set_post_lock( $post_id );
    162163        wp_redirect( get_edit_post_link( $post_id, 'url' ) );
Note: See TracChangeset for help on using the changeset viewer.