id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 40891 map_meta_cap() causing PHP notice on term meta permissions caercam boonebgorges "Mentioned in #40889: when checking for permission to add/edit/delete term meta, `map_meta_cap()` only performs a simple boolean test to make sure the term exists: https://core.trac.wordpress.org/browser/tags/4.7/src/wp-includes/capabilities.php#L277 If `get_term()` returns a `WP_Error` the test fails and `$term->taxonomy` causes an ""Undefined property"" notice. There should be an additional check using `is_wp_error()`, a simple `isset( $term->taxonomy )` or maybe a simpler `term_exists()` to make sure the term actually exists. " defect (bug) closed normal 4.9 Role/Capability 4.7 normal fixed has-patch needs-testing