wordpress-develop/tests/phpunit/tests/theme
Helen Hou-Sandi f3a59f8632 Theme starter content: Add support for featured images and page templates.
Featured image support means that attachments can now be imported. Media can be sideloaded from within theme or plugin directories. Like other posts, attachments are auto-drafts until customizer changes are published, and are not duplicated when they already exist in the customized state. Attachment IDs can be used for any number of purposes, much like post IDs. Twenty Seventeen now includes 3 images used as featured images to best showcase the multi-section homepage setup.

As featured image IDs are stored in post meta, it also made sense to add support for page templates. Twenty Seventeen does not include any such templates, but the functionality can be quite important for displaying themes to their best effect.

props westonruter, helen, flixos90.
fixes #38615.


git-svn-id: https://develop.svn.wordpress.org/trunk@39346 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-23 09:52:27 +00:00
..
customHeader.php Themes: Remove front page restriction from video header functions. 2016-11-15 07:15:20 +00:00
getAllowedFilters.php Themes: Enhance filtering options for allowed themes on a network. 2016-01-20 18:28:33 +00:00
getThemeStarterContent.php Theme starter content: Add support for featured images and page templates. 2016-11-23 09:52:27 +00:00
support.php Post Thumbnails: Fix logic bug and tests from [37308] where post-thumbnails support wasn’t added if there were no previous post_types with support already. 2016-04-26 20:28:46 +00:00
themeDir.php Build/Test Tools: Utilise assertFileExists() and assertFileNotExists() in more places. 2016-11-08 23:49:11 +00:00
WPTheme.php Multisite: Introduce WP_Theme methods to network enable/disable themes. 2016-04-14 03:39:45 +00:00