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