WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/24/2010 11:58:21 AM (9 years ago)
Author:
dd32
Message:

Use the correct term_id field in get_body_class().

File:
1 edited

Legend:

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

    r15617 r15651  
    415415            $cat = $wp_query->get_queried_object();
    416416            $classes[] = 'category';
    417             $classes[] = 'category-' . sanitize_html_class( $cat->slug, $cat->cat_ID );
     417            $classes[] = 'category-' . sanitize_html_class( $cat->slug, $cat->term_id );
    418418        } elseif ( is_tag() ) {
    419419            $tags = $wp_query->get_queried_object();
Note: See TracChangeset for help on using the changeset viewer.