Closed spacedmonkey closed 4 years ago
Without pretty urls set, then url structure looks like this
http://localhost:8088/index.php?rest_route=%2Funsplash%2Fv1%2Fphotos%2Fsearch&search=batman&page=1&per_page=30
Meaning that just adding ?context=edit
does work. As it results in a URL like this
http://localhost:8088/index.php?rest_route=wp/v2/media/123?context=edit
which is invalid.
Summary
When a permalink structure is not setup, ?context=edit did not work. Using add query var fixes this.
Checklist