wordpress-develop/tests/phpunit/tests/post
Jonathan Desrosiers 65ec280a54 Posts, Post Types: Allow support arguments to be specified when registering post types.
The `add_post_type_support()` function accepts an optional third parameter that allows extra arguments to be supplied to configure post type support for a given feature. However, because of how `register_post_type()` and `WP_Post_Type->add_supports()` work, it is currently impossible to pass these additional arguments when initially registering a post type with `register_post_type()`.

This change makes it possible to supply additional arguments for a feature using the `supports` argument of `register_post_type()`.

Props MaximeCulea, seuser, desrosj, johnbillion.
Fixes #40413.

git-svn-id: https://develop.svn.wordpress.org/trunk@46160 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-17 19:57:18 +00:00
..
attachments.php Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:57:26 +00:00
filtering.php Code is Poetry. 2017-11-30 23:09:33 +00:00
formats.php Build/Test Tools: Implement assertNotWPError() in appropriate places in the test suite. 2018-03-20 22:34:11 +00:00
getBodyClass.php PHPCS: Fix WPCS violation in [45088]. 2019-04-01 16:48:32 +00:00
getPageByPath.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getPageChildren.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getPages.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests. 2019-07-02 04:43:01 +00:00
getPageUri.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getPostClass.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getPosts.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getPostsByAuthorSql.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getPostTypeLabels.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
getTheContent.php Posts, Post Types: Revert [46079] pending test failure investigation. 2019-09-07 19:32:42 +00:00
getTheExcerpt.php Posts: Avoid the use of globals in get_the_content() and related functions. 2019-03-20 15:48:46 +00:00
isPostTypeViewable.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
listPages.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
meta.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
nav-menu.php Menus: Trim whitespace from custom link URLs. 2019-07-17 18:44:56 +00:00
objects.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
output.php Remove the core/more block delimiters when splitting post_content on the <!--more--> tag. 2019-04-24 05:40:01 +00:00
pings.php Code is Poetry. 2017-11-30 23:09:33 +00:00
query.php Build/Test Tools: Add support for PHPUnit 7.x. 2019-01-28 14:10:24 +00:00
revisions.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
slashes.php Code is Poetry. 2017-11-30 23:09:33 +00:00
template.php Accessibility: use aria-current for the paginated post links output by wp_link_pages(). 2018-01-12 20:16:56 +00:00
thumbnails.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
types.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
wpGetPostParentId.php Tests: Improve tests for wp_get_post_parent_id() added in [42397]. 2018-02-01 16:02:26 +00:00
wpInsertPost.php Coding Standards: Fix WPCS violations in [45851]. 2019-08-19 16:34:57 +00:00
wpPost.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wpPostType.php Posts, Post Types: Allow support arguments to be specified when registering post types. 2019-09-17 19:57:18 +00:00
wpUniquePostSlug.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests. 2019-07-02 04:43:01 +00:00