Docs: Improve documentation of known return types, plus other docs fixes.

See #48303


git-svn-id: https://develop.svn.wordpress.org/trunk@46660 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2019-11-05 21:21:46 +00:00
parent 63d4dcd10a
commit db4f746b4a
31 changed files with 177 additions and 119 deletions

View File

@@ -330,7 +330,7 @@ class WP_REST_Request implements ArrayAccess {
*
* @since 4.4.0
*
* @return array List of types to check, in order of priority.
* @return string[] Array of types to check, in order of priority.
*/
protected function get_parameter_order() {
$order = array();
@@ -366,12 +366,8 @@ class WP_REST_Request implements ArrayAccess {
*
* @since 4.4.0
*
* @param array $order {
* An array of types to check, in order of priority.
*
* @param string $type The type to check.
* }
* @param WP_REST_Request $this The request object.
* @param string[] $order Array of types to check, in order of priority.
* @param WP_REST_Request $this The request object.
*/
return apply_filters( 'rest_request_parameter_order', $order, $this );
}