REST API: Make all collection params filterable.

For developers wanting to add their own registered collection parameters, they can now use the `rest_$type_collection_params` filter. This brings consistency with the already existing `rest_$post_type_collection_params`.

Fixes #38710.
Props jnylen0.

Built from https://develop.svn.wordpress.org/trunk@39223


git-svn-id: http://core.svn.wordpress.org/trunk@39163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Joe Hoyle
2016-11-14 16:42:31 +00:00
parent 5c90d9ed8e
commit a4fa8c528f
4 changed files with 41 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-beta3-39222';
$wp_version = '4.7-beta3-39223';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.