| | 2 | |
| | 3 | I don't know if my patch is fitting well, but another question came up my mind. What about other occurences of get_term() in connection with is_wp_error, like in |
| | 4 | |
| | 5 | wp-admin\includes\ajax-actions.php, |
| | 6 | Line 491: |
| | 7 | {{{#!php |
| | 8 | $parent = get_term( $parent->parent, $taxonomy->name ); |
| | 9 | if ( is_wp_error( $parent ) ) |
| | 10 | break; |
| | 11 | }}} |
| | 12 | |
| | 13 | wp-admin\includes\class-wp-links-list-table.php |
| | 14 | Line 223: |
| | 15 | {{{#!php |
| | 16 | $cat = get_term( $category, 'link_category', OBJECT, 'display' ); |
| | 17 | if ( is_wp_error( $cat ) ) { |
| | 18 | |
| | 19 | }}} |
| | 20 | |
| | 21 | and some more.. |