Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58183, comment 5


Ignore:
Timestamp:
04/25/2023 12:54:24 PM (2 years ago)
Author:
kraftner
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58183, comment 5

    initial v1  
    88So, since just like with the menu panel removing instead of just deactivating has proven problematic, the same applies to the widget panel. So I think what actually needs to be done here, also in the name of consistency with the menu panel is to revert [52622].
    99
    10 As I understand it, the widget panel still wouldn't be shown for a theme without widgets areas since the [https://github.com/WordPress/wordpress-develop/blob/26e3948fca904db17a588d3736b3db59f8007daa/src/wp-includes/class-wp-customize-widgets.php#L422 active_callback] still [https://github.com/WordPress/wordpress-develop/blob/26e3948fca904db17a588d3736b3db59f8007daa/src/wp-includes/class-wp-customize-widgets.php#L549-L562 deactivates the panel without registered widget areas].
     10EDIT: see next comment ~~As I understand it, the widget panel still wouldn't be shown for a theme without widgets areas since the [https://github.com/WordPress/wordpress-develop/blob/26e3948fca904db17a588d3736b3db59f8007daa/src/wp-includes/class-wp-customize-widgets.php#L422 active_callback] still [https://github.com/WordPress/wordpress-develop/blob/26e3948fca904db17a588d3736b3db59f8007daa/src/wp-includes/class-wp-customize-widgets.php#L549-L562 deactivates the panel without registered widget areas].~~