to be fair Drupal is transitioning from their legacy to a modern component–centric architecture and they are planning for much more mild backwards compat roadmap.
if WordPress tried to transition to modern PHP... hurts to imagine :)
@all Anyone have recent experience with WP REST API? I have been out of touch with this project for a long time. Can't seem to figure out how to filter CPT output with taxonomy & term pair.
Does anyone else get SUPER generic PHP Errors in PHP7?
Literally full page `die();` and all it says is this ` <h1>Error thrown</h1><p>Cannot use object of type MBE\Post_Featured_Image as array</p>` Doesn't give me a line number or filename...
@Howdy_McGee I've always globalled variables as needed or at the top of the file if it's going to be used everywhere in the file.
Same thing for functions. Top of the function if used everywhere in the function, or as needed in the function if its only needed conditionally for example.
@TomJNowell Thanks! It seem we can't pass term_id to get a post/CPT endpoint. The endpoint cpt/filter?taxnomy-slug=<term-slug> You can not pass id in the term-slug it fails. They dropped filter param so I guess it will come back with more proper structure..