Changeset 52439
- Timestamp:
- 01/04/2022 06:38:52 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r52383 r52439 4182 4182 add_theme_support( 'responsive-embeds' ); 4183 4183 add_theme_support( 'editor-styles' ); 4184 add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'style', 'script' ) ); 4184 /* 4185 * Makes block themes support HTML5 by default for the comment block and search form 4186 * (which use default template functions) and `[caption]` and `[gallery]` shortcodes. 4187 * Other blocks contain their own HTML5 markup. 4188 */ 4189 add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'search-form', 'gallery', 'caption', 'style', 'script' ) ); 4185 4190 add_theme_support( 'automatic-feed-links' ); 4186 4191 -
trunk/tests/phpunit/tests/theme.php
r52389 r52439 707 707 * 708 708 * @ticket 54597 709 * @ticket 54731 710 * 709 711 * @dataProvider data_block_theme_has_default_support 710 712 * … … 762 764 'support' => array( 763 765 'feature' => 'editor-styles', 766 ), 767 ), 768 'html5: comment-list' => array( 769 'support' => array( 770 'feature' => 'html5', 771 'sub_feature' => 'comment-list', 772 ), 773 ), 774 'html5: comment-form' => array( 775 'support' => array( 776 'feature' => 'html5', 777 'sub_feature' => 'comment-form', 778 ), 779 ), 780 'html5: search-form' => array( 781 'support' => array( 782 'feature' => 'html5', 783 'sub_feature' => 'search-form', 784 ), 785 ), 786 'html5: gallery' => array( 787 'support' => array( 788 'feature' => 'html5', 789 'sub_feature' => 'gallery', 790 ), 791 ), 792 'html5: caption' => array( 793 'support' => array( 794 'feature' => 'html5', 795 'sub_feature' => 'caption', 764 796 ), 765 797 ),
Note: See TracChangeset
for help on using the changeset viewer.