Make WordPress Core

Ticket #33281: taxonomy.33281.diff

File taxonomy.33281.diff, 410 bytes (added by charlestonsw, 11 years ago)

Proposed patch.

  • taxonomy.php

     
    14571457                $field = 'tt.term_taxonomy_id';
    14581458        } else {
    14591459                $term = get_term( (int) $value, $taxonomy, $output, $filter );
    1460                 if ( is_wp_error( $term ) )
     1460                if ( is_wp_error( $term ) || is_null( $term ) )
    14611461                        $term = false;
    14621462                return $term;
    14631463        }