Make WordPress Core

Changeset 54208


Ignore:
Timestamp:
09/19/2022 05:52:54 PM (21 months ago)
Author:
davidbaumwald
Message:

Posts, Post Types: Update new wp_post_class_taxonomies filter name for consistency.

In [54066], a new filter was added to alter the taxonomies for which class names are generated for a given post type. At the time, the filter name was prefixed with wp_.

For consistency with filters of a similar type, this change updates the filter name to post_class_taxonomies.

Follow-up to [54066].

Props SergeyBiryukov.
See #37114.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r54066 r54208  
    561561     * @param string[] $class      An array of additional class names added to the post.
    562562    */
    563     $taxonomies = apply_filters( 'wp_post_class_taxonomies', $taxonomies, $post->ID, $classes, $class );
     563    $taxonomies = apply_filters( 'post_class_taxonomies', $taxonomies, $post->ID, $classes, $class );
    564564
    565565    foreach ( (array) $taxonomies as $taxonomy ) {
Note: See TracChangeset for help on using the changeset viewer.