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

Call to missing post / page returns error instead of 404 #15

Closed edtjones closed 7 years ago

edtjones commented 8 years ago

A call to e.g. /wp-json/wp/v2/posts/123456 where post 123456 doesn't exist returns an error:

Notice: Undefined property: stdClass::$show_in_rest in /srv/www/rooftop-cms/public/web/app/mu-plugins/rest-api/lib/endpoints/class-wp-rest-posts-controller.php on line 858

It should just return a 404 instead.

edtjones commented 7 years ago

Fixed in subsequent releases.