[wp-trac] [WordPress Trac] #34139: Widgets panel missing in Customizer when there is some error

WordPress Trac noreply at wordpress.org
Sat Oct 3 20:17:55 UTC 2015


#34139: Widgets panel missing in Customizer when there is some error
-------------------------------------+------------------------------
 Reporter:  pavelevap                |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback close  |     Focuses:
-------------------------------------+------------------------------
Changes (by westonruter):

 * keywords:  reporter-feedback => reporter-feedback close


Comment:

 There is probably a fatal that is preventing the script data to be
 exported in the footer, resulting in the preview never communicating that
 there are sidebars on the template.

 As for why the fatal is happening, you already said that WooCommerce
 wasn't activated and so that `WC_Product` class would not be defined. You
 are probably getting this same error outside the Customizer but your
 errors are not being displayed. Wrap the logic that tries to instantiate
 the class in a `class_exists()` check.

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


More information about the wp-trac mailing list