]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/post.php
WordPress 4.2.4
[autoinstalls/wordpress.git] / wp-admin / post.php
index 52f1bda297fd146e054fa4901ed68853d86b6047..9b9b20f84a0858afdc156a998a75bf26bde21285 100644 (file)
@@ -160,6 +160,7 @@ case 'edit':
                wp_die( __( 'You can’t edit this item because it is in the Trash. Please restore it and try again.' ) );
 
        if ( ! empty( $_GET['get-post-lock'] ) ) {
+               check_admin_referer( 'lock-post_' . $post_id );
                wp_set_post_lock( $post_id );
                wp_redirect( get_edit_post_link( $post_id, 'url' ) );
                exit();