Make WordPress Core

Ticket #49799: 49799.diff

File 49799.diff, 546 bytes (added by dingo_d, 4 years ago)

Patch with the fix

  • 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 ) { 
    12401240        }
    12411241
    12421242        $terms = get_object_term_cache( $post->ID, $taxonomy );
    1243         if ( false === $terms ) {
     1243        if ( false == $terms ) {
    12441244                $terms = wp_get_object_terms( $post->ID, $taxonomy );
    12451245                if ( ! is_wp_error( $terms ) ) {
    12461246                        $term_ids = wp_list_pluck( $terms, 'term_id' );