WordPress.org

Make WordPress Core

Changeset 11054


Ignore:
Timestamp:
04/22/09 17:46:51 (5 years ago)
Author:
ryan
Message:

Add page-id-x class to body for pages. jamescollins. see #7939

File:
1 edited

Legend:

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

    r11053 r11054  
    420420 
    421421        $pageID = $wp_query->post->ID; 
     422 
     423        $classes[] = 'page-id-' . $pageID; 
     424 
    422425        if ( $wpdb->get_var( $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'page' LIMIT 1", $pageID) ) ) 
    423426            $classes[] = 'page-parent'; 
Note: See TracChangeset for help on using the changeset viewer.