Changeset 35023
- Timestamp:
- 10/11/2015 05:09:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r35022 r35023 1395 1395 1396 1396 if ( $thumbnail_id && get_post( $thumbnail_id ) ) { 1397 $old_content_width = $content_width; 1398 $content_width = 266; 1399 1400 $size = isset( $_wp_additional_image_sizes['post-thumbnail'] ) ? 'post-thumbnail' : array( $content_width, $content_width ); 1397 $size = isset( $_wp_additional_image_sizes['post-thumbnail'] ) ? 'post-thumbnail' : array( 266, 266 ); 1401 1398 1402 1399 /** … … 1410 1407 * @since 4.4.0 1411 1408 * 1412 * @param string|array $size Post thumbnail image size to display in the meta box. Accepts 1413 * any valid image size, or an array of height and width values. 1414 * If the 'post-thumbnail' size is set, default is 'post-thumbnail'. 1415 * Otherwise, default is an array with `$content_width` as the 1416 * height and width values. 1409 * @param string|array $size Post thumbnail image size to display in the meta box. Accepts any valid 1410 * image size, or an array of height and width values in pixels. If the 1411 * 'post-thumbnail' size is set, default is 'post-thumbnail'. Otherwise, 1412 * default is an array with 266 as both the height and width values. 1417 1413 * @param int $thumbnail_id Post thumbnail attachment ID. 1418 1414 * @param WP_Post $post The post object associated with the thumbnail. … … 1431 1427 $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 1428 } 1433 $content_width = $old_content_width;1434 1429 } 1435 1430
Note: See TracChangeset
for help on using the changeset viewer.