[wp-trac] [WordPress Trac] #60236: Customizer’s Widget's component should only be loaded when not using a Block Theme
WordPress Trac
noreply at wordpress.org
Mon Jun 10 22:10:21 UTC 2024
#60236: Customizer’s Widget's component should only be loaded when not using a
Block Theme
----------------------------------------------+-----------------------
Reporter: imath | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.6
Component: Customize | Version: 5.9
Severity: normal | Resolution: fixed
Keywords: has-patch has-screenshots commit | Focuses:
----------------------------------------------+-----------------------
Changes (by audrasjb):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"58376" 58376]:
{{{
#!CommitTicketReference repository="" revision="58376"
Customize: Avoid loading the `widgets` component if a block theme is
activated.
This changeset adds a check to ensure the current theme is not a block
theme before adding the `widgets` component to the Customizer manager.
This avoids a PHP warning when previewing/customizing notification emails
with a block theme in BuddyPress and potentially on other plugins.
See https://github.com/buddypress/buddypress/pull/215.
Props imath, mukesh27, faisal03, sumitbagthariya16, webcommsat.
Fixes #60236.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60236#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list