Automattic / lightweight-term-count-update

Makes term count updates less painful
GNU General Public License v2.0
27 stars 8 forks source link

Fix potential cache clearing bug #21

Closed mboynes closed 1 year ago

mboynes commented 1 year ago

This PR aims to resolve #20. clean_term_cache() is being called incorrectly; when passing term taxonomy IDs, the taxonomy should be omitted. When including the taxonomy, the first value is assumed to be term IDs.

In addition, this PR updates the unit tests to use the yoast polyfill.