WordPress.org

Make WordPress Core

Ticket #9514: post-template.diff

File post-template.diff, 370 bytes (added by nathanrice, 9 years ago)

post-template.php diff file to add page class to get_body_class()

  • post-template.php

     
    410410                        $classes[] = 'tag-' . $tags->slug;
    411411                }
    412412        } elseif ( is_page() ) {
     413                $classes[] = 'page';
     414               
    413415                $wp_query->post = $wp_query->posts[0];
    414416                setup_postdata($wp_query->post);
    415417