65ec280a54
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 |
||
---|---|---|
.. | ||
e2e | ||
phpunit | ||
qunit |