Index: wp-includes/post-template.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- wp-includes/post-template.php	(revision 2eae9d3f46c0ed31597d3d57c4791dc7ee88c3d7)
+++ wp-includes/post-template.php	(revision )
@@ -505,25 +505,36 @@
 	// hentry for hAtom compliance
 	$classes[] = 'hentry';
 
+	/**
+	 * Filters the status of get the taxonomies.
+	 *
+	 * @since 4.6.0
+	 *
+	 * @param bool $status Status get of taxonomies.
+	 * @param WP_Post $post Post Object.
+	 */
+	if ( apply_filters( 'get_post_class_taxonomy', true, $post ) ) {
-	// All public taxonomies
+		//All public taxonomies
-	$taxonomies = get_taxonomies( array( 'public' => true ) );
-	foreach ( (array) $taxonomies as $taxonomy ) {
-		if ( is_object_in_taxonomy( $post->post_type, $taxonomy ) ) {
-			foreach ( (array) get_the_terms( $post->ID, $taxonomy ) as $term ) {
-				if ( empty( $term->slug ) ) {
-					continue;
-				}
+		$taxonomies = get_taxonomies( array( 'public' => true ) );
+		foreach ( (array) $taxonomies as $taxonomy ) {
+			if ( is_object_in_taxonomy( $post->post_type, $taxonomy ) ) {
+				foreach ( (array) get_the_terms( $post->ID, $taxonomy ) as $term ) {
+					if ( empty( $term->slug ) ) {
+						continue;
+					}
 
-				$term_class = sanitize_html_class( $term->slug, $term->term_id );
-				if ( is_numeric( $term_class ) || ! trim( $term_class, '-' ) ) {
-					$term_class = $term->term_id;
-				}
+					$term_class = sanitize_html_class( $term->slug, $term->term_id );
+					if ( is_numeric( $term_class ) || ! trim( $term_class, '-' ) ) {
+						$term_class = $term->term_id;
+					}
 
-				// 'post_tag' uses the 'tag' prefix for backward compatibility.
-				if ( 'post_tag' == $taxonomy ) {
-					$classes[] = 'tag-' . $term_class;
-				} else {
+					// 'post_tag' uses the 'tag' prefix for backward compatibility.
+					if ( 'post_tag' == $taxonomy ) {
+						$classes[] = 'tag-' . $term_class;
+					} else {
-					$classes[] = sanitize_html_class( $taxonomy . '-' . $term_class, $taxonomy . '-' . $term->term_id );
+						$classes[] = sanitize_html_class( $taxonomy . '-' . $term_class,
+								$taxonomy . '-' . $term->term_id );
+					}
 				}
 			}
 		}
