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
This commit is contained in:
Dominik Schilling 2016-07-22 11:43:36 +00:00
parent 4fd98bb5ed
commit b19f91f4bb

View File

@ -1420,7 +1420,6 @@ function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) {
$thumbnail_html = wp_get_attachment_image( $thumbnail_id, $size ); $thumbnail_html = wp_get_attachment_image( $thumbnail_id, $size );
if ( ! empty( $thumbnail_html ) ) { if ( ! empty( $thumbnail_html ) ) {
$ajax_nonce = wp_create_nonce( 'set_post_thumbnail-' . $post->ID );
$content = sprintf( $set_thumbnail_link, $content = sprintf( $set_thumbnail_link,
esc_url( $upload_iframe_src ), esc_url( $upload_iframe_src ),
' aria-describedby="set-post-thumbnail-desc"', ' aria-describedby="set-post-thumbnail-desc"',