Ticket #33281: 33281.patch
| File 33281.patch, 956 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/taxonomy-functions.php
803 803 $field = 'tt.term_taxonomy_id'; 804 804 } else { 805 805 $term = get_term( (int) $value, $taxonomy, $output, $filter ); 806 if ( is_wp_error( $term ) )806 if ( is_wp_error( $term ) || is_null( $term ) ) 807 807 $term = false; 808 808 return $term; 809 809 } -
tests/phpunit/tests/term.php
58 58 } 59 59 60 60 /** 61 * @ticket 33281 62 */ 63 function test_get_term_by_unexisting_id() { 64 $term = get_term_by( 'id', 123456, 'category' ); 65 $this->assertFalse( $term ); 66 } 67 68 /** 61 69 * @ticket 15919 62 70 */ 63 71 function test_wp_count_terms() {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)