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
..
2017-11-30 23:09:33 +00:00
2019-08-22 00:21:49 +00:00
2019-08-19 02:17:50 +00:00
2017-11-30 23:09:33 +00:00
2019-04-08 06:53:14 +00:00
2019-01-10 21:16:49 +00:00
2018-08-17 01:50:26 +00:00
2018-09-02 22:08:05 +00:00
2019-09-11 01:50:23 +00:00
2019-09-15 11:03:45 +00:00
2019-09-17 11:13:25 +00:00
2019-07-08 00:55:20 +00:00
2019-09-04 17:11:22 +00:00
2018-08-17 01:50:26 +00:00
2019-04-16 05:08:16 +00:00
2019-07-08 00:55:20 +00:00
2019-07-08 00:55:20 +00:00
2019-01-14 04:54:01 +00:00
2019-09-04 18:40:13 +00:00
2019-09-17 18:48:27 +00:00
2019-09-10 19:22:07 +00:00
2019-09-15 11:03:45 +00:00
2019-07-08 00:55:20 +00:00
2019-09-07 01:33:16 +00:00
2019-07-08 00:55:20 +00:00
2019-04-15 23:48:11 +00:00
2019-07-27 12:43:56 +00:00
2019-07-08 00:55:20 +00:00
2016-07-08 14:36:37 +00:00
2018-08-17 01:50:26 +00:00
2019-09-13 17:57:57 +00:00
2019-07-08 00:55:20 +00:00
2019-09-12 22:16:08 +00:00
2019-08-19 02:17:50 +00:00
2019-08-22 00:21:49 +00:00
2019-07-08 00:55:20 +00:00
2019-09-17 19:57:18 +00:00
2019-08-18 02:07:00 +00:00
2019-07-15 06:24:08 +00:00
2019-09-12 21:28:14 +00:00
2019-01-14 04:54:01 +00:00
2019-01-14 04:54:01 +00:00
2019-08-26 15:18:40 +00:00
2019-07-08 00:55:20 +00:00
2019-03-21 19:47:29 +00:00
2019-08-14 15:35:19 +00:00
2019-04-08 23:22:14 +00:00
2019-08-29 16:43:28 +00:00
2017-11-30 23:09:33 +00:00
2019-07-08 00:55:20 +00:00
2019-08-01 19:53:45 +00:00
2019-01-12 06:05:55 +00:00
2019-07-08 00:55:20 +00:00
2017-11-30 23:09:33 +00:00
2019-04-08 01:09:01 +00:00
2017-11-30 23:09:33 +00:00
2019-05-26 00:11:37 +00:00
2019-07-08 00:55:20 +00:00
2019-07-08 00:55:20 +00:00
2019-03-16 06:41:23 +00:00
2019-09-15 11:55:42 +00:00
2019-07-08 00:55:20 +00:00
2017-11-30 23:09:33 +00:00
2019-07-08 00:55:20 +00:00
2017-11-30 23:09:33 +00:00
2019-08-05 18:09:20 +00:00
2019-09-04 17:51:33 +00:00
2019-07-08 00:55:20 +00:00
2018-08-17 01:50:26 +00:00
2019-07-27 14:29:28 +00:00
2019-09-14 21:34:51 +00:00
2019-09-05 22:52:29 +00:00
2019-07-08 00:55:20 +00:00
2019-07-08 00:55:20 +00:00
2018-08-17 01:50:26 +00:00
2019-07-08 00:55:20 +00:00
2018-08-17 01:50:26 +00:00
2019-09-12 21:46:41 +00:00
2018-08-17 01:50:26 +00:00
2019-07-08 00:55:20 +00:00
2019-08-15 00:36:38 +00:00
2019-07-08 00:55:20 +00:00
2019-03-21 20:19:16 +00:00
2018-08-17 01:50:26 +00:00
2019-07-08 00:55:20 +00:00
2017-11-30 23:09:33 +00:00
2019-05-26 00:11:37 +00:00
2019-08-22 01:52:16 +00:00
2017-11-30 23:09:33 +00:00
2019-09-15 11:40:08 +00:00
2019-07-08 00:55:20 +00:00