Ticket #7939: 7939.2.diff
File 7939.2.diff, 622 bytes (added by , 15 years ago) |
---|
-
wp-includes/post-template.php
383 383 if ( is_404() ) 384 384 $classes[] = 'error404'; 385 385 386 if ( is_singular() ) 387 $classes[] = $wp_query->post->post_name; 388 386 389 if ( is_single() ) { 387 390 the_post(); 388 391 … … 416 419 $pageID = $wp_query->post->ID; 417 420 $page_children = wp_list_pages("child_of=$pageID&echo=0"); 418 421 422 $classes[] = 'pageid-' . $pageID; 423 419 424 if ( $page_children ) 420 425 $classes[] = 'page-parent'; 421 426