Changes between Version 1 and Version 2 of Ticket #54552, comment 3
- Timestamp:
- 12/02/2021 06:55:30 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #54552, comment 3
v1 v2 1 When replacing `wp_is_block_template_theme` with `wp_get_theme()→is_block_based()`, we must take into account that `get_stylesheet_directory` and `get_template_directory` functions use filters (` get_stylesheet_directory` and `template_directory` filters respectively).1 When replacing `wp_is_block_template_theme` with `wp_get_theme()→is_block_based()`, we must take into account that `get_stylesheet_directory` and `get_template_directory` functions use filters (`stylesheet_directory` and `template_directory` filters respectively). 2 2 These functions are used by `wp_is_block_template_theme` function internally. 3 3 While `WP_Theme::get_stylesheet_directory` and `WP_Theme::get_template_directory` methods don't use any filters (used by `WP_Theme::is_block_based`.