[wp-trac] [WordPress Trac] #63086: Customizer: warning errror regarding WP_Theme::is_block_theme

WordPress Trac noreply at wordpress.org
Wed Mar 12 01:59:54 UTC 2025


#63086: Customizer: warning errror regarding WP_Theme::is_block_theme
--------------------------+--------------------
 Reporter:  wildworks     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.8
Component:  Customize     |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+--------------------
 [59968] added `_doing_it_wrong()` error when `WP_Theme::is_block_theme` is
 called too early.

 This warning tells me that the customizer might be using
 `WP_Theme::is_block_theme` too early.

 Here's what's causing this error:

 - https://github.com/WordPress/wordpress-
 develop/blob/7475126055ddf7b9fd6c303d2468676926b762f0/src/wp-includes
 /class-wp-customize-manager.php#L295
 - https://github.com/WordPress/wordpress-
 develop/blob/7475126055ddf7b9fd6c303d2468676926b762f0/src/wp-includes
 /class-wp-customize-manager.php#L290

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


More information about the wp-trac mailing list