Changeset 53774
- Timestamp:
- 07/25/2022 01:46:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/template.php
r53773 r53774 17 17 public $custom_logo_id; 18 18 public $custom_logo_url; 19 20 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 21 /* 22 * Declare theme support for custom logo. 23 * 24 * This ensures that the `site_logo` option gets deleted in 25 * _delete_site_logo_on_remove_theme_mods(), which in turn 26 * prevents the `core/site-logo` block filters from affecting 27 * the custom logo tests. 28 * 29 * Alternatively, these filters can be removed instead: 30 * 31 * remove_filter( 'theme_mod_custom_logo', '_override_custom_logo_theme_mod' ); 32 * remove_filter( 'pre_set_theme_mod_custom_logo', '_sync_custom_logo_to_site_logo' ); 33 */ 34 add_theme_support( 'custom-logo' ); 35 } 36 37 public static function wpTearDownAfterClass() { 38 remove_theme_support( 'custom-logo' ); 39 } 19 40 20 41 public function set_up() {
Note: See TracChangeset
for help on using the changeset viewer.