Adds 'rand' as one of the valid params for 'orderby' in rest controller. #551
This commit is contained in:
parent
6026dcdebc
commit
4f285494fe
|
@ -363,7 +363,8 @@ class REST_Controller extends \WP_REST_Controller {
|
||||||
'title',
|
'title',
|
||||||
'meta_value',
|
'meta_value',
|
||||||
'meta_value_num',
|
'meta_value_num',
|
||||||
'menu_order'
|
'menu_order',
|
||||||
|
'rand'
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue