Make WordPress Core

Changeset 13462


Ignore:
Timestamp:
02/27/2010 05:49:49 PM (15 years ago)
Author:
nacin
Message:

Pass post ID to post_class filter, even when calling post_class() without parameters in the loop. fixes #11878

File:
1 edited

Legend:

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

    r13425 r13462  
    345345    $classes = array_map('esc_attr', $classes);
    346346
    347     return apply_filters('post_class', $classes, $class, $post_id);
     347    return apply_filters('post_class', $classes, $class, $post->ID);
    348348}
    349349
Note: See TracChangeset for help on using the changeset viewer.