WordPress.org

Make WordPress Core


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

Heartbeat: Ensure post locks are released.

Merge of [33542] to the 4.2 branch.

File:
1 edited

Legend:

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

    r32019 r33543  
    15431543        if ( $override ) {
    15441544            ?>
    1545             <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>
     1545            <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>
    15461546            <?php
    15471547        }
Note: See TracChangeset for help on using the changeset viewer.