[wp-trac] [WordPress Trac] #37030: WordPress Customizer Does Not Work

WordPress Trac noreply at wordpress.org
Sat Jun 4 18:02:23 UTC 2016


#37030: WordPress Customizer Does Not Work
--------------------------+-----------------------------
 Reporter:  tetonbabe     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.5.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This is probably due to bad data somewhere in my database.  I see the
 problem with WordPress 4.5.2 and with all plugins disabled.  Although I
 cannot tell you how to duplicate the problem, the fix is a safe fix.  The
 problem is due to php files referencing data.attachment.sizes when that is
 undefined.  In wp-includes/, there are 3 WordPress php files that contain
 the text 'data.attachment.sizes'.  #1 already has the fix, which is to
 check whether 'undefined' !== typeof data.attachment.sizes.  I added that
 test to the 2nd file, which fixed my problem.  I suggest it be added to
 the 3rd file as well, for safety.  The 3 files are:
   1 - wp-includes/media-template.php.
   2 - wp-includes/customize/class-wp-customize-site-icon-control.php, line
 62
   3 - wp-includes/class-wp-customize-media-control.php, line 156

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37030>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list