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
This commit is contained in:
parent
04f0d611f8
commit
34cd38aa84
|
@ -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 ) ) {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue