Changeset 49354
- Timestamp:
- 10/28/2020 03:12:40 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r49344 r49354 2482 2482 * @since 5.5.0 The `core-block-patterns` feature was added and is enabled by default. 2483 2483 * @since 5.5.0 The `custom-logo` feature now also accepts 'unlink-homepage-logo'. 2484 * @since 5.6.0 The `post-formats` feature now returns doing it wrong if no array is passed2484 * @since 5.6.0 The `post-formats` feature warns if no array is passed. 2485 2485 * 2486 2486 * @global array $_wp_theme_features -
trunk/tests/phpunit/tests/post/formats.php
r49344 r49354 7 7 function setUp() { 8 8 parent::setUp(); 9 }10 11 /**12 * @ticket 5139013 */14 function test_post_format_doing_it_wrong() {15 $this->setExpectedIncorrectUsage( "add_theme_support( 'post-formats' )" );16 17 // The second parameter should be an array.18 $this->assertFalse( add_theme_support( 'post-formats' ) );19 9 } 20 10 -
trunk/tests/phpunit/tests/theme/support.php
r48937 r49354 133 133 } 134 134 135 /** 136 * @ticket 51390 137 * 138 * @expectedIncorrectUsage add_theme_support( 'post-formats' ) 139 */ 140 function test_supports_post_formats_doing_it_wrong() { 141 // The second parameter should be an array. 142 $this->assertFalse( add_theme_support( 'post-formats' ) ); 143 } 144 135 145 function supports_foobar( $yesno, $args, $feature ) { 136 146 if ( $args[0] === $feature[0] ) {
Note: See TracChangeset
for help on using the changeset viewer.