Changeset 36000 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 12/17/2015 11:43:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r35818 r36000 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 title="%s" href="%s" id="set-post-thumbnail" class="thickbox">%s</a></p>';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>'; 1384 1384 $upload_iframe_src = get_upload_iframe_src( 'image', $post->ID ); 1385 1385 1386 1386 $content = sprintf( $set_thumbnail_link, 1387 esc_attr( $post_type_object->labels->set_featured_image ),1388 1387 esc_url( $upload_iframe_src ), 1389 1388 esc_html( $post_type_object->labels->set_featured_image ) … … 1417 1416 $ajax_nonce = wp_create_nonce( 'set_post_thumbnail-' . $post->ID ); 1418 1417 $content = sprintf( $set_thumbnail_link, 1419 esc_attr( $post_type_object->labels->set_featured_image ),1420 1418 esc_url( $upload_iframe_src ), 1421 1419 $thumbnail_html 1422 1420 ); 1421 $content .= '<p class="hide-if-no-js howto" id="set-post-thumbnail-desc">' . __( 'Click the image to edit or update' ) . '</p>'; 1423 1422 $content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail" onclick="WPRemoveThumbnail(\'' . $ajax_nonce . '\');return false;">' . esc_html( $post_type_object->labels->remove_featured_image ) . '</a></p>'; 1424 1423 }
Note: See TracChangeset
for help on using the changeset viewer.