Changeset 60037
- Timestamp:
- 03/18/2025 12:28:17 PM (5 weeks ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r59968 r60037 1577 1577 */ 1578 1578 public function is_block_theme() { 1579 if ( ! did_action( 'setup_theme' ) ) {1580 _doing_it_wrong( __METHOD__, __( 'This method should not be called before themes are set up.' ), '6.8.0' );1581 return false;1582 }1583 1584 1579 if ( isset( $this->block_theme ) ) { 1585 1580 return $this->block_theme; -
trunk/src/wp-includes/theme.php
r59861 r60037 4353 4353 */ 4354 4354 function wp_is_block_theme() { 4355 if ( empty( $GLOBALS['wp_theme_directories'] ) ) { 4356 _doing_it_wrong( __FUNCTION__, __( 'This function should not be called before the theme directory is registered.' ), '6.8.0' ); 4357 return false; 4358 } 4359 4355 4360 return wp_get_theme()->is_block_theme(); 4356 4361 }
Note: See TracChangeset
for help on using the changeset viewer.