Merge pull request #13899 from woocommerce/fix/missing-array-declaration

Fixed missing array declaration
This commit is contained in:
Claudio Sanches 2017-04-05 11:49:10 -03:00 committed by GitHub
commit 2e7393d156
1 changed files with 2 additions and 1 deletions

View File

@ -471,7 +471,8 @@ abstract class WC_REST_CRUD_Controller extends WC_REST_Posts_Controller {
* @return array
*/
public function get_collection_params() {
$params['context'] = $this->get_context_param();
$params = array();
$params['context'] = $this->get_context_param();
$params['context']['default'] = 'view';
$params['page'] = array(