Changeset 52812
- Timestamp:
- 03/01/2022 04:05:14 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r52610 r52812 3038 3038 } 3039 3039 3040 // If no args passed then no extra checks need be performed.3040 // If no args passed then no extra checks need to be performed. 3041 3041 if ( ! $args ) { 3042 return true; 3042 /** This filter is documented in wp-includes/theme.php */ 3043 return apply_filters( "current_theme_supports-{$feature}", true, $args, $_wp_theme_features[ $feature ] ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores 3043 3044 } 3044 3045 -
trunk/tests/phpunit/tests/theme/support.php
r52798 r52812 169 169 170 170 /** 171 * @ticket 55219 172 */ 173 public function test_plugin_hook_with_no_args() { 174 add_theme_support( 'foobar' ); 175 176 add_filter( 'current_theme_supports-foobar', '__return_false' ); 177 178 $this->assertFalse( current_theme_supports( 'foobar' ) ); 179 } 180 181 /** 171 182 * @ticket 26900 172 183 */
Note: See TracChangeset
for help on using the changeset viewer.