From 34cd38aa84bfc1d21c734afc5f23ac2d4dcdc61e Mon Sep 17 00:00:00 2001 From: davidbaumwald Date: Mon, 19 Sep 2022 17:54:11 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@54208 git-svn-id: http://core.svn.wordpress.org/trunk@53767 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 99ec81deb4..89ab67a675 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -560,7 +560,7 @@ function get_post_class( $class = '', $post = null ) { * @param string[] $classes An array of post class names. * @param string[] $class An array of additional class names added to the post. */ - $taxonomies = apply_filters( 'wp_post_class_taxonomies', $taxonomies, $post->ID, $classes, $class ); + $taxonomies = apply_filters( 'post_class_taxonomies', $taxonomies, $post->ID, $classes, $class ); foreach ( (array) $taxonomies as $taxonomy ) { if ( is_object_in_taxonomy( $post->post_type, $taxonomy ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index e06b4ba2cf..e8c6f83304 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54207'; +$wp_version = '6.1-alpha-54208'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.