Make WordPress Core


Ignore:
Timestamp:
05/18/2010 10:08:49 PM (16 years ago)
Author:
markjaquith
Message:

Add nonce protection for setting/removing featured post image. fixes #13438

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r14725 r14730  
    14681468        $thumbnail_id = intval( $_POST['thumbnail_id'] );
    14691469
     1470        check_ajax_referer( "set_post_thumbnail-$post_id" );
     1471
    14701472        if ( $thumbnail_id == '-1' ) {
    14711473                delete_post_meta( $post_id, '_thumbnail_id' );
Note: See TracChangeset for help on using the changeset viewer.