From b19f91f4bb1d6a72478e60010d13aeb10990a8fb Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Fri, 22 Jul 2016 11:43:36 +0000 Subject: [PATCH] Post Thumbnails: Remove an unused nonce in `_wp_post_thumbnail_html()`. See #12922. git-svn-id: https://develop.svn.wordpress.org/trunk@38137 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index 3e7e333fbe..86ba666f38 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -1419,8 +1419,7 @@ function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) { $thumbnail_html = wp_get_attachment_image( $thumbnail_id, $size ); - if ( !empty( $thumbnail_html ) ) { - $ajax_nonce = wp_create_nonce( 'set_post_thumbnail-' . $post->ID ); + if ( ! empty( $thumbnail_html ) ) { $content = sprintf( $set_thumbnail_link, esc_url( $upload_iframe_src ), ' aria-describedby="set-post-thumbnail-desc"',