WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #42752, comment 8


Ignore:
Timestamp:
12/22/2017 03:18:42 AM (4 years ago)
Author:
dd32
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42752, comment 8

    initial v1  
    1 Your issue is that you've got a registered `query_var` which cannot be an array registered, while trying to also use that same query var in the rest api .
     1The issue at hand here is that the `download` GET variable is a registered `query_var`. Query Vars *cannot* be nested arrays.
     2The REST API and the rest of WordPress doesn't appear to play nicely in this situation - as on every REST API request you're still triggering the parsing of all the other WordPress routes query vars, resulting in this.