mirror of
git://develop.git.wordpress.org/
synced 2025-03-17 18:39:51 +01:00
The `get_term()` mapping may result in term objects that are `null` or `WP_Error` when plugins use `get_term` or a related filter. Since `null` and error objects are not valid results for a term query, we discard them. Props GM_Alex. Merges [43049] and [43491] to the 4.9 branch. Fixes #42691. git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43492 602fd350-edb4-49c9-b593-d223f7449a82