[wp-trac] [WordPress Trac] #36749: Customizer wont load: issue with site-icon control

WordPress Trac noreply at wordpress.org
Wed May 4 06:32:28 UTC 2016


#36749: Customizer wont load: issue with site-icon control
--------------------------+-----------------------------
 Reporter:  raxcido       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 When i go to the customizer i get this error on console and after that
 Customizer can not load:


 {{{
 Uncaught TypeError: Cannot read property 'full' of undefined
 }}}

 There is not any plugin installed and wordpress is fresh, i don't know how
 this error occurred but it happened!
 I traced this error and found data.attachment.sizes is undefined and it is
 in WP_Customize_Site_Icon_Control!

 Please check line No. 62 of wp-includes/customize/class-wp-customize-site-
 icon-control.php

 {{{#!php
 <# if ( data.attachment && data.attachment.id ) { #>
 }}}
 I think it should be:
 {{{#!php
 <# if ( data.attachment && data.attachment.id && data.attachment.sizes) {
 #>
 }}}

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


More information about the wp-trac mailing list