Merge pull request #13899 from woocommerce/fix/missing-array-declaration
Fixed missing array declaration
This commit is contained in:
commit
2e7393d156
|
@ -471,7 +471,8 @@ 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['context'] = $this->get_context_param();
|
$params = array();
|
||||||
|
$params['context'] = $this->get_context_param();
|
||||||
$params['context']['default'] = 'view';
|
$params['context']['default'] = 'view';
|
||||||
|
|
||||||
$params['page'] = array(
|
$params['page'] = array(
|
||||||
|
|
Loading…
Reference in New Issue