fix: translate prepare mapped meta queries

This commit is contained in:
vnmedeiros 2022-01-26 10:04:43 -03:00
parent 92c81ed0a3
commit 7ae44316d3
1 changed files with 2 additions and 2 deletions

View File

@ -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 ];
}
}
}