Make WordPress Core

Ticket #11878: 11878.patch

File 11878.patch, 383 bytes (added by Utkarsh, 15 years ago)

Patch

  • post-template.php

     
    306306function get_post_class( $class = '', $post_id = null ) {
    307307        $post = get_post($post_id);
    308308
     309        if(is_null($post_id))
     310                $post_id = $post->ID;
     311       
    309312        $classes = array();
    310313
    311314        if ( empty($post) )