rooftopcms / rooftop-cms

Rooftop CMS is an API-first WordPress CMS for developers and content creators
http://www.rooftopcms.com
GNU General Public License v3.0
220 stars 23 forks source link

_embed GET querystring breaks API responses #6

Closed edtjones closed 8 years ago

edtjones commented 8 years ago

According to these docs we should be able to automatically embed relations into a response by passing _embed as a GET querystring.

But when we do, we get an error in the REST API plugin:

Fatal error: Cannot unset string offsets in /srv/www/rooftop-cms/public/web/app/mu-plugins/rest-api/lib/endpoints/class-wp-rest-controller.php on line 179

Interesting, this is an identical error to the one produced by #5

phendrick commented 8 years ago

resolved in the same fix as #5