Ticket #35076: 35076.3.patch
File 35076.3.patch, 1.3 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/post.php
1380 1380 1381 1381 $post = get_post( $post ); 1382 1382 $post_type_object = get_post_type_object( $post->post_type ); 1383 $set_thumbnail_link = '<p class="hide-if-no-js"><a href="%s" id="set-post-thumbnail" aria-describedby="set-post-thumbnail-desc"class="thickbox">%s</a></p>';1383 $set_thumbnail_link = '<p class="hide-if-no-js"><a href="%s" id="set-post-thumbnail"%s class="thickbox">%s</a></p>'; 1384 1384 $upload_iframe_src = get_upload_iframe_src( 'image', $post->ID ); 1385 1385 1386 1386 $content = sprintf( $set_thumbnail_link, 1387 1387 esc_url( $upload_iframe_src ), 1388 '', // Empty when there's no featured image set, `aria-describedby` attribute otherwise. 1388 1389 esc_html( $post_type_object->labels->set_featured_image ) 1389 1390 ); 1390 1391 … … 1416 1417 $ajax_nonce = wp_create_nonce( 'set_post_thumbnail-' . $post->ID ); 1417 1418 $content = sprintf( $set_thumbnail_link, 1418 1419 esc_url( $upload_iframe_src ), 1420 ' aria-describedby="set-post-thumbnail-desc"', 1419 1421 $thumbnail_html 1420 1422 ); 1421 1423 $content .= '<p class="hide-if-no-js howto" id="set-post-thumbnail-desc">' . __( 'Click the image to edit or update' ) . '</p>';