Changeset 34188
- Timestamp:
- 09/15/2015 02:45:59 PM (9 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/custom-header.php
r34163 r34188 894 894 $attachment_id = $this->insert_attachment( $object, $cropped ); 895 895 896 $url = $object['guid'];896 $url = wp_get_attachment_url( $attachment_id ); 897 897 $this->set_header_image( compact( 'url', 'attachment_id', 'width', 'height' ) ); 898 898 … … 1126 1126 'ID' => $parent_attachment_id, 1127 1127 'post_title' => basename($cropped), 1128 'post_content' => $url,1129 1128 'post_mime_type' => $image_type, 1130 1129 'guid' => $url, … … 1208 1207 1209 1208 $object['attachment_id'] = $new_attachment_id; 1209 $object['url'] = wp_get_attachment_url( $new_attachment_id );; 1210 1210 $object['width'] = $dimensions['dst_width']; 1211 1211 $object['height'] = $dimensions['dst_height']; -
trunk/src/wp-admin/js/customize-controls.js
r34056 r34188 2414 2414 */ 2415 2415 onCropped: function(croppedImage) { 2416 var url = croppedImage. post_content,2416 var url = croppedImage.url, 2417 2417 attachmentId = croppedImage.attachment_id, 2418 2418 w = croppedImage.width,
Note: See TracChangeset
for help on using the changeset viewer.