[wp-trac] [WordPress Trac] #58183: PHP notice when accessing Customizer with a classic theme without widgets

WordPress Trac noreply at wordpress.org
Tue Apr 25 12:50:52 UTC 2023


#58183: PHP notice when accessing Customizer with a classic theme without widgets
--------------------------+------------------------------
 Reporter:  kraftner      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by kraftner):

 Okay, now I get it. It would indeed be shown for a block theme.

 So the right approach here probably is to do the same as was done for the
 navigation panel. Revert [52622] but then deactivate it for block themes
 by adding something similar to the [https://github.com/WordPress
 /wordpress-develop/blob/26e3948fca904db17a588d3736b3db59f8007daa/src/wp-
 includes/theme.php#L4267-L4284 menu panel removal].

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


More information about the wp-trac mailing list