mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 23:30:53 +00: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. Built from https://develop.svn.wordpress.org/branches/4.9@43492 git-svn-id: http://core.svn.wordpress.org/branches/4.9@43319 1a063a9b-81f0-0310-95a4-ce76da25c4cd