There are other things wrong with this function (like it doesn't actually retrieve a list of categories, seemingly) but here's at least one obvious bug that was revealed by boombatower in his GHOP SimpleTest work.

Comments

webchick’s picture

Title: BlogAPI still calling taxonomy_node_get_terms with old arguments » blogapi_mt_get_post_categories is broken
StatusFileSize
new929 bytes

Here's a patch to fix that problem.

I'm wondering if this should be elevated to critical, as I imagine this is breaking something somewhere. It's at least spitting out errors when the function is called directly.

Rok Žlender’s picture

I tested the patch and it fixes the returning terms problem.

webchick’s picture

Status: Needs work » Reviewed & tested by the community

Ok, well let's get that in for now, I guess. Sometime when walkah or someone who's touched blogapi before is around, we can look at the function itself.

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Indeed, looks logical, thanks, committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.