Ticket #49799: 49799.diff
File 49799.diff, 546 bytes (added by , 4 years ago) |
---|
-
src/wp-includes/category-template.php
diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index 998f23cd00..24e4daa0c6 100644
a b function get_the_terms( $post, $taxonomy ) { 1240 1240 } 1241 1241 1242 1242 $terms = get_object_term_cache( $post->ID, $taxonomy ); 1243 if ( false == =$terms ) {1243 if ( false == $terms ) { 1244 1244 $terms = wp_get_object_terms( $post->ID, $taxonomy ); 1245 1245 if ( ! is_wp_error( $terms ) ) { 1246 1246 $term_ids = wp_list_pluck( $terms, 'term_id' );