Changeset 45607 for trunk/tests/phpunit/tests/image/siteIcon.php
- Timestamp:
- 07/08/2019 12:55:20 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/siteIcon.php
r44785 r45607 56 56 57 57 // Remove custom size. 58 unset( $this->wp_site_icon->site_icon_sizes[ array_search( 321, $this->wp_site_icon->site_icon_sizes ) ] );58 unset( $this->wp_site_icon->site_icon_sizes[ array_search( 321, $this->wp_site_icon->site_icon_sizes, true ) ] ); 59 59 // Remove the filter we added 60 60 remove_filter( 'site_icon_image_sizes', array( $this, '_custom_test_sizes' ) ); … … 96 96 97 97 // Remove custom size. 98 unset( $this->wp_site_icon->site_icon_sizes[ array_search( 321, $this->wp_site_icon->site_icon_sizes ) ] );98 unset( $this->wp_site_icon->site_icon_sizes[ array_search( 321, $this->wp_site_icon->site_icon_sizes, true ) ] ); 99 99 } 100 100
Note: See TracChangeset
for help on using the changeset viewer.