Fixed missing array declaration

This commit is contained in:
Claudio Sanches 2017-04-04 14:53:05 -03:00
parent 642b8f4e73
commit cf954fac1e
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
*/
public function get_collection_params() {
$params = array();
$params['context'] = $this->get_context_param();
$params['context']['default'] = 'view';