[wp-trac] [WordPress Trac] #40010: Regression for #36749. Uploading an image into site_icon breaks customizer

WordPress Trac noreply at wordpress.org
Thu Mar 2 01:20:14 UTC 2017


#40010: Regression for #36749. Uploading an image into site_icon breaks customizer
-------------------------------+------------------------------
 Reporter:  aussieguy123       |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Customize          |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by aussieguy123):

 @westonruter

 here is the output of _wpCustomizeSettings.controls.site_icon.attachment .
 Sizes is actually not empty, but the "full" size is missing.

 The fix addresses the symptom. If the core issue is no full size being
 generated, that should be fixed seperately.

 You are right that jetpack is involved. Deactivating jetpack (wp plugin
 deactivate jetpack --network) works around the problem.
 {{{#!json
 {
   "id": 44,
   "title": "cropped-mars-1.jpg",
   "filename": "cropped-mars-1.jpg",
   "url": "http://heraldsun.local/wp-content/uploads/sites/10/2017/03
 /cropped-mars-1.jpg",
   "link": "http://heraldsun.local/cropped-mars-1-jpg",
   "alt": "",
   "author": "1",
   "description": "http://heraldsun.local/wp-
 content/uploads/sites/10/2017/03/cropped-mars-1.jpg",
   "caption": "",
   "name": "cropped-mars-1-jpg",
   "status": "inherit",
   "uploadedTo": 0,
   "date": 1488348427000,
   "modified": 1488348427000,
   "menuOrder": 0,
   "mime": "image/jpeg",
   "type": "image",
   "subtype": "jpeg",
   "icon": "http://heraldsun.local/wp-includes/images/media/default.png",
   "dateFormatted": "March 1, 2017",
   "nonces": {
     "update": "4f78209afe",
     "delete": "cc6e068550",
     "edit": "41f6cf352f"
   },
   "editLink": "http://heraldsun.local/wp-
 admin/post.php?post=44&action=edit",
   "meta": false,
   "authorName": "wordpress",
   "filesizeInBytes": 38387,
   "filesizeHumanReadable": "37 KB",
   "height": 512,
   "width": 512,
   "orientation": "landscape",
   "sizes": {
     "spp_thumbnail": {
       "height": 75,
       "width": 100,
       "url": "http://heraldsun.local/wp-content/uploads/sites/10/2017/03
 /cropped-mars-1-100x75.jpg",
       "orientation": "landscape"
     },
     "promo_thumbnail": {
       "height": 86,
       "width": 149,
       "url": "http://heraldsun.local/wp-content/uploads/sites/10/2017/03
 /cropped-mars-1-149x86.jpg",
       "orientation": "landscape"
     },
     "story_crop": {
       "height": 237,
       "width": 316,
       "url": "http://heraldsun.local/wp-content/uploads/sites/10/2017/03
 /cropped-mars-1-316x237.jpg",
       "orientation": "landscape"
     },
     "story_portrait": {
       "height": 421,
       "width": 316,
       "url": "http://heraldsun.local/wp-content/uploads/sites/10/2017/03
 /cropped-mars-1-316x421.jpg",
       "orientation": "portrait"
     },
     "gallery_portrait": {
       "height": 488,
       "width": 366,
       "url": "http://heraldsun.local/wp-content/uploads/sites/10/2017/03
 /cropped-mars-1-366x488.jpg",
       "orientation": "portrait"
     },
     "gallery_alt_image": {
       "height": 433,
       "width": 288,
       "url": "http://heraldsun.local/wp-content/uploads/sites/10/2017/03
 /cropped-mars-1-288x433.jpg",
       "orientation": "portrait"
     },
     "tablet_thumbnail": {
       "height": 110,
       "width": 196,
       "url": "http://heraldsun.local/wp-content/uploads/sites/10/2017/03
 /cropped-mars-1-196x110.jpg",
       "orientation": "landscape"
     },
     "tablet_square_small": {
       "height": 234,
       "width": 234,
       "url": "http://heraldsun.local/wp-content/uploads/sites/10/2017/03
 /cropped-mars-1-234x234.jpg",
       "orientation": "landscape"
     }
   },
   "compat": {
     "item": "<input type=\"hidden\" name=\"attachments[44][menu_order]\"
 value=\"0\" /><p class=\"media-types media-types-required-info\">Required
 fields are marked <span class=\"required\">*</span></p>\n\t\t\t<table
 class=\"compat-attachment-fields\">\t\t<tr class='compat-field-
 wpcom_thumbnails'>\t\t\t<th scope='row' class='label'><label
 for='attachments-44-wpcom_thumbnails'><span class='alignleft'>Thumbnail
 Images</span><br class='clear' /></label></th>\n\t\t\t<td class='field'><p
 class=\"hide-if-js\">You need to enable Javascript to use this
 functionality.</p><input type=\"button\" class=\"hide-if-no-js button\"
 onclick=\"jQuery(this).hide();jQuery('#wpcom-
 thumbs-44').slideDown('slow');\" value=\"Show Thumbnails\" /><div id
 =\"wpcom-thumbs-44\" class=\"hidden\"><p>Click on a thumbnail image to
 modify it. Each thumbnail has likely been scaled down in order to fit
 nicely into a grid.<br /><strong>Only thumbnails that are cropped are
 shown.</strong> Other sizes are hidden because they will be scaled to
 fit.</p><div><div style=\"float:left;margin:0 20px 20px 0;min-
 width:250px;\"><a href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=thumbnail\"
 target=\"_blank\"><strong>thumbnail</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-150x150.jpg\" alt=\"thumbnail\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=spp_thumbnail\"
 target=\"_blank\"><strong>spp_thumbnail</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-100x75.jpg\" alt=\"spp_thumbnail\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=promo_thumbnail\"
 target=\"_blank\"><strong>promo_thumbnail</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-149x86.jpg\" alt=\"promo_thumbnail\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=story_crop\"
 target=\"_blank\"><strong>story_crop</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-316x237.jpg\" alt=\"story_crop\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=story_portrait\"
 target=\"_blank\"><strong>story_portrait</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-316x421.jpg\" alt=\"story_portrait\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=major_event\"
 target=\"_blank\"><strong>major_event</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-512x366.jpg\" alt=\"major_event\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=gallery_portrait\"
 target=\"_blank\"><strong>gallery_portrait</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-366x488.jpg\" alt=\"gallery_portrait\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=gallery_landscape\"
 target=\"_blank\"><strong>gallery_landscape</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-512x488.jpg\" alt=\"gallery_landscape\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=gallery_landscape_alt\"
 target=\"_blank\"><strong>gallery_landscape_alt</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-512x433.jpg\" alt=\"gallery_landscape_alt\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=gallery_square\"
 target=\"_blank\"><strong>gallery_square</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"gallery_square\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=venti\"
 target=\"_blank\"><strong>venti</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"venti\" /></a></div><div style=\"float:left;margin:0
 20px 20px 0;min-width:250px;\"><a href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_landscape\"
 target=\"_blank\"><strong>tablet_landscape</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"tablet_landscape\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=gallery_alt_image\"
 target=\"_blank\"><strong>gallery_alt_image</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-288x433.jpg\" alt=\"gallery_alt_image\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_portrait\"
 target=\"_blank\"><strong>tablet_portrait</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"tablet_portrait\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_square\"
 target=\"_blank\"><strong>tablet_square</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"tablet_square\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_wide\"
 target=\"_blank\"><strong>tablet_wide</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"tablet_wide\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_thumbnail\"
 target=\"_blank\"><strong>tablet_thumbnail</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-196x110.jpg\" alt=\"tablet_thumbnail\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_gallery_landscape\"
 target=\"_blank\"><strong>tablet_gallery_landscape</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-512x488.jpg\" alt=\"tablet_gallery_landscape\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_square_small\"
 target=\"_blank\"><strong>tablet_square_small</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-234x234.jpg\" alt=\"tablet_square_small\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=spp_thumbnail\"
 target=\"_blank\"><strong>spp_thumbnail</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-100x75.jpg\" alt=\"spp_thumbnail\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=promo_thumbnail\"
 target=\"_blank\"><strong>promo_thumbnail</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-149x86.jpg\" alt=\"promo_thumbnail\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=story_crop\"
 target=\"_blank\"><strong>story_crop</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-316x237.jpg\" alt=\"story_crop\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=story_portrait\"
 target=\"_blank\"><strong>story_portrait</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-316x421.jpg\" alt=\"story_portrait\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=major_event\"
 target=\"_blank\"><strong>major_event</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-512x366.jpg\" alt=\"major_event\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=gallery_portrait\"
 target=\"_blank\"><strong>gallery_portrait</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-366x488.jpg\" alt=\"gallery_portrait\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=gallery_landscape\"
 target=\"_blank\"><strong>gallery_landscape</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-512x488.jpg\" alt=\"gallery_landscape\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=gallery_landscape_alt\"
 target=\"_blank\"><strong>gallery_landscape_alt</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-512x433.jpg\" alt=\"gallery_landscape_alt\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=gallery_square\"
 target=\"_blank\"><strong>gallery_square</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"gallery_square\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=venti\"
 target=\"_blank\"><strong>venti</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"venti\" /></a></div><div style=\"float:left;margin:0
 20px 20px 0;min-width:250px;\"><a href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_landscape\"
 target=\"_blank\"><strong>tablet_landscape</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"tablet_landscape\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=gallery_alt_image\"
 target=\"_blank\"><strong>gallery_alt_image</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-288x433.jpg\" alt=\"gallery_alt_image\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_portrait\"
 target=\"_blank\"><strong>tablet_portrait</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"tablet_portrait\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_square\"
 target=\"_blank\"><strong>tablet_square</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"tablet_square\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_wide\"
 target=\"_blank\"><strong>tablet_wide</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1.jpg\" alt=\"tablet_wide\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_thumbnail\"
 target=\"_blank\"><strong>tablet_thumbnail</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-196x110.jpg\" alt=\"tablet_thumbnail\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_gallery_landscape\"
 target=\"_blank\"><strong>tablet_gallery_landscape</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-512x488.jpg\" alt=\"tablet_gallery_landscape\" /></a></div><div
 style=\"float:left;margin:0 20px 20px 0;min-width:250px;\"><a
 href=\"http://heraldsun.local/wp-
 admin/admin.php?action=wpcom_thumbnail_edit&id=44&size=tablet_square_small\"
 target=\"_blank\"><strong>tablet_square_small</strong><br /><img
 src=\"http://heraldsun.local/wp-content/uploads/sites/10/2017/03/cropped-
 mars-1-234x234.jpg\" alt=\"tablet_square_small\"
 /></a></div></div></div></td>\n\t\t</tr>\n</table>",
     "meta": ""
   }
 }

 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40010#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list