WordPress 4.2.4
[autoinstalls/wordpress.git] / wp-admin / includes / post.php
index 9356ace1aaa370ff1edb0dd5f58301766e3aac3b..3885c2e1319ade52325a06fc6a0c31fd52df7cc2 100644 (file)
@@ -1542,7 +1542,7 @@ function _admin_notice_post_locked() {
                // Allow plugins to prevent some users overriding the post lock
                if ( $override ) {
                        ?>
-                       <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>
+                       <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>
                        <?php
                }