Adds 'rand' as one of the valid params for 'orderby' in rest controller. #551

This commit is contained in:
mateuswetah 2021-07-26 10:07:44 -03:00
parent 6026dcdebc
commit 4f285494fe
1 changed files with 2 additions and 1 deletions

View File

@ -363,7 +363,8 @@ class REST_Controller extends \WP_REST_Controller {
'title',
'meta_value',
'meta_value_num',
'menu_order'
'menu_order',
'rand'
),
);