Make WordPress Core


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

Heartbeat: Ensure post locks are released.

Merge of [33542] to the 4.0 branch.

File:
1 edited

Legend:

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

    r32181 r33545  
    14781478        if ( $override ) {
    14791479            ?>
    1480             <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>
     1480            <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>
    14811481            <?php
    14821482        }
Note: See TracChangeset for help on using the changeset viewer.