Merge branch 'release/0.18.8' of github.com:tainacan/tainacan into release/0.18.8

This commit is contained in:
mateuswetah 2022-01-27 09:30:13 -03:00
commit c50e70b97a
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 ];
}
}
}