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

Taxonomies terms returned with a post are an array if empty, and an object if there are some #27

Open edtjones opened 8 years ago

edtjones commented 8 years ago

If there are taxonomy terms associated with a given post, you get an object with the taxonomy as the key and the terms in an array. If there are no taxonomy terms associated with a post, you get an array (when you would normally expect an empty object). This makes parsing a bit harder than it should be.