Make WordPress Core

Changeset 8642


Ignore:
Timestamp:
08/13/2008 09:59:52 PM (16 years ago)
Author:
ryan
Message:

Initialize classes array. see #7457

File:
1 edited

Legend:

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

    r8641 r8642  
    176176    $post = get_post($post_id);
    177177
     178    $classes = array();
     179
    178180    $classes[] = $post->post_type;
    179181
     182    // sticky for Sticky Posts
    180183    if ( is_sticky($post->ID) )
    181184        $classes[] = 'sticky';
Note: See TracChangeset for help on using the changeset viewer.