Make WordPress Core

Ticket #37114: 37114.3.patch

File 37114.3.patch, 1.2 KB (added by system909, 2 years ago)

update patch for trunk

  • src/wp-includes/post-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    547547
    548548        // All public taxonomies.
    549549        $taxonomies = get_taxonomies( array( 'public' => true ) );
     550        /**
     551         * Filters the taxonomies to generate classes for each individual term.
     552         *
     553         * Default is all public taxonomies registered to the post type.
     554         *
     555         * @since 6.0.2
     556         *
     557         * @param array $taxonomies List of all public taxonomies to generate classes for.
     558         * @param array $classes An array of post class names.
     559         * @param array $class An array of additional class names added to the post.
     560         * @param int $post_id The post ID.
     561         */
     562        $taxonomies = apply_filters( 'post_class_taxonomies', $taxonomies, $classes, $class, $post->ID );
    550563        foreach ( (array) $taxonomies as $taxonomy ) {
    551564                if ( is_object_in_taxonomy( $post->post_type, $taxonomy ) ) {
    552565                        foreach ( (array) get_the_terms( $post->ID, $taxonomy ) as $term ) {