mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Code is Poetry.
WordPress' code just... wasn't. This is now dealt with. Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS. Fixes #41057. git-svn-id: https://develop.svn.wordpress.org/trunk@42343 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -142,8 +142,9 @@ class Tests_Theme_Support extends WP_UnitTestCase {
|
||||
}
|
||||
|
||||
function supports_foobar( $yesno, $args, $feature ) {
|
||||
if ( $args[0] == $feature[0] )
|
||||
if ( $args[0] == $feature[0] ) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -152,7 +153,7 @@ class Tests_Theme_Support extends WP_UnitTestCase {
|
||||
add_theme_support( 'foobar' );
|
||||
$this->assertTrue( current_theme_supports( 'foobar' ) );
|
||||
|
||||
add_filter( 'current_theme_supports-foobar', array( $this, 'supports_foobar'), 10, 3 );
|
||||
add_filter( 'current_theme_supports-foobar', array( $this, 'supports_foobar' ), 10, 3 );
|
||||
|
||||
add_theme_support( 'foobar', 'bar' );
|
||||
$this->assertFalse( current_theme_supports( 'foobar', 'foo' ) );
|
||||
|
||||
Reference in New Issue
Block a user