fix: translate prepare mapped meta queries
This commit is contained in:
parent
92c81ed0a3
commit
7ae44316d3
|
@ -237,8 +237,8 @@ class REST_Controller extends \WP_REST_Controller {
|
|||
|
||||
} else {
|
||||
foreach ( $query as $mapped_meta => $meta_v ) {
|
||||
if(isset($request[$mapped][$meta_v])) {
|
||||
$args[ $mapped_v ][ $meta_v ] = $request[ $mapped ][ $meta_v ];
|
||||
if(isset($request[$mapped][$mapped_meta])) {
|
||||
$args[ $mapped_v ][ $meta_v ] = $request[ $mapped ][ $mapped_meta ];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue