WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36529, comment 3


Ignore:
Timestamp:
04/14/2016 11:19:38 PM (4 years ago)
Author:
Presskopp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36529, comment 3

    initial v1  
    11I couldn't hold back :)
     2
     3I 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
     5wp-admin\includes\ajax-actions.php,
     6Line 491:
     7{{{#!php
     8                        $parent = get_term( $parent->parent, $taxonomy->name );
     9                        if ( is_wp_error( $parent ) )
     10                                break;
     11}}}
     12
     13wp-admin\includes\class-wp-links-list-table.php
     14Line 223:
     15{{{#!php
     16                        $cat = get_term( $category, 'link_category', OBJECT, 'display' );
     17                        if ( is_wp_error( $cat ) ) {
     18
     19}}}
     20
     21and some more..