Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #54552, comment 3


Ignore:
Timestamp:
12/02/2021 06:55:30 PM (3 years ago)
Author:
antonvlasenko
Comment:

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).
     1When 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).
    22These functions are used by `wp_is_block_template_theme` function internally.
    33While `WP_Theme::get_stylesheet_directory` and `WP_Theme::get_template_directory` methods don't use any filters (used by `WP_Theme::is_block_based`.