Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Commit 2d4cdbc

Browse files
Fix default contexts for users
1 parent 2a62c03 commit 2d4cdbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/endpoints/class-wp-rest-users-controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function register_routes() {
3535
'callback' => array( $this, 'get_item' ),
3636
'permission_callback' => array( $this, 'get_item_permissions_check' ),
3737
'args' => array(
38-
'context' => $this->get_context_param( array( 'default' => 'view' ) ),
38+
'context' => $this->get_context_param( array( 'default' => 'embed' ) ),
3939
),
4040
),
4141
array(
@@ -768,7 +768,7 @@ public function get_item_schema() {
768768
public function get_collection_params() {
769769
$query_params = parent::get_collection_params();
770770

771-
$params['context']['default'] = 'view';
771+
$query_params['context']['default'] = 'view';
772772

773773
$query_params['order'] = array(
774774
'default' => 'asc',

0 commit comments

Comments
 (0)