Changeset 38118 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 07/20/2016 04:23:36 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r38029 r38118 1429 1429 ); 1430 1430 $content .= '<p class="hide-if-no-js howto" id="set-post-thumbnail-desc">' . __( 'Click the image to edit or update' ) . '</p>'; 1431 $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>'; 1432 } 1433 } 1431 $content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail">' . esc_html( $post_type_object->labels->remove_featured_image ) . '</a></p>'; 1432 } 1433 } 1434 1435 $content .= '<input type="hidden" id="_thumbnail_id" name="_thumbnail_id" value="' . esc_attr( $thumbnail_id ? $thumbnail_id : '-1' ) . '" />'; 1434 1436 1435 1437 /** … … 1754 1756 $query_args['preview_nonce'] = wp_create_nonce( 'post_preview_' . $post->ID ); 1755 1757 1756 if ( isset( $_POST['post_format'] ) ) 1758 if ( isset( $_POST['post_format'] ) ) { 1757 1759 $query_args['post_format'] = empty( $_POST['post_format'] ) ? 'standard' : sanitize_key( $_POST['post_format'] ); 1760 } 1761 1762 if ( isset( $_POST['_thumbnail_id'] ) ) { 1763 $query_args['_thumbnail_id'] = ( intval( $_POST['_thumbnail_id'] ) <= 0 ) ? '-1' : intval( $_POST['_thumbnail_id'] ); 1764 } 1758 1765 } 1759 1766
Note: See TracChangeset
for help on using the changeset viewer.