wordpress-develop/tests/phpunit/tests/query
Pascal Birchler a9516abb54 Posts, Post Types: Add support for post type templates.
WordPress has supported custom page templates for over 12 years, allowing developers to create various layouts for specific pages.
While this feature is very helpful, it has always been limited to the 'page' post type and not was not available to other post types.

By opening up the page template functionality to all post types, we continue to improve the template hierarchy's flexibility.

In addition to the `Template Name` file header, the post types supported by a template can be specified using `Template Post Type: post, foo, bar`.
When at least one template exists for a post type, the 'Post Attributes' meta box will be displayed in the back end, without the need to add post type support for `'page-attributes'`. 'Post Attributes' can be customized per post type using the `'attributes'` label when registering a post type.

Props johnbillion, Mte90, dipesh.kakadiya, swissspidy.
Fixes #18375.

git-svn-id: https://develop.svn.wordpress.org/trunk@38951 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-26 08:06:43 +00:00
..
conditionals.php Posts, Post Types: Add support for post type templates. 2016-10-26 08:06:43 +00:00
date.php Unit Tests: 2016-08-27 08:35:16 +00:00
dateQuery.php Remove erroneous return in date_query test. 2016-02-29 22:40:20 +00:00
isTerm.php Unit Tests: Change some @group annotations to @ticket. 2016-07-04 20:24:52 +00:00
metaQuery.php Build/Test Tools: Continue eliminating randomness in tests. 2016-10-26 01:23:24 +00:00
noFoundRows.php Add tests for no_found_rows behavior of WP_Query. 2016-05-31 19:28:46 +00:00
parseQuery.php Query: Non-scalar and negative values for 'p' should always result in a 404. 2016-08-20 02:31:31 +00:00
postStatus.php Unit Tests: 2016-08-27 08:35:16 +00:00
results.php Unit Tests: 2016-08-27 08:35:16 +00:00
search.php Query: Allow the prefix used for search term exclusion to be filtered. 2016-10-20 18:41:22 +00:00
setupPostdata.php Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static). 2015-10-17 19:24:20 +00:00
stickies.php Unit Tests: 2016-08-27 08:35:16 +00:00
taxQuery.php Use LEFT JOIN when building WP_Tax_Query SQL. 2016-04-12 20:36:31 +00:00
vars.php Query: Re-initialise any dynamically-added public query vars before running the public query vars test. 2015-12-21 06:59:05 +00:00
verboseRewriteRules.php Built/Test Tools: Unify the way the permastructure is set when used in conjunction with re-registering the initial taxonomies. This ensure that rewrite rules for taxonomies are consistently available. 2016-09-26 17:01:48 +00:00