Make WordPress Core


Ignore:
Timestamp:
07/22/2016 11:43:36 AM (8 years ago)
Author:
ocean90
Message:

Post Thumbnails: Remove an unused nonce in _wp_post_thumbnail_html().

See #12922.

File:
1 edited

Legend:

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

    r38136 r38137  
    14201420        $thumbnail_html = wp_get_attachment_image( $thumbnail_id, $size );
    14211421
    1422         if ( !empty( $thumbnail_html ) ) {
    1423             $ajax_nonce = wp_create_nonce( 'set_post_thumbnail-' . $post->ID );
     1422        if ( ! empty( $thumbnail_html ) ) {
    14241423            $content = sprintf( $set_thumbnail_link,
    14251424                esc_url( $upload_iframe_src ),
Note: See TracChangeset for help on using the changeset viewer.