* `get_terms()` can return `WP_Error`, so its return value should be checked before traversing. * The 2nd call to `get_terms()` can be removed, it is redundant #OPTIMIZATION See #32444. Built from https://develop.svn.wordpress.org/trunk@32739 git-svn-id: http://core.svn.wordpress.org/trunk@32710 1a063a9b-81f0-0310-95a4-ce76da25c4cd