Skip to content

Conversation

kassyn
Copy link

@kassyn kassyn commented Mar 28, 2016

I found the bug when i needed in ?filter[meta_query][0][key]=my_key&[meta_query][0][value]=my_value. I moved only if the depth to prior verification of array.

The way it was before the filter parameter was lost.

@kassyn
Copy link
Author

kassyn commented Mar 28, 2016

I added the hook for accept meta_query:

add_filter( 'rest_query_vars', 'rest_add_query_vars' );

function rest_add_query_vars( $args )  {
    $custom = array(
        'meta_query'
    );
    return array_merge( $args, $custom );
}

Without the change to the function join_with_equals_sign the signatures does not match, error below:

{"code":"json_oauth1_signature_mismatch","message":"OAuth signature does not match","data":{"status":401}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant