diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php
index 9cf6c44551..c2015d983a 100644
|
a
|
b
|
function get_body_class( $class = '' ) { |
| 667 | 667 | $classes[] = 'attachment-' . str_replace( $mime_prefix, '', $mime_type ); |
| 668 | 668 | } elseif ( is_page() ) { |
| 669 | 669 | $classes[] = 'page'; |
| 670 | | |
| 671 | | $page_id = $wp_query->get_queried_object_id(); |
| 672 | | |
| 673 | | $post = get_post( $page_id ); |
| 674 | | |
| 675 | | $classes[] = 'page-id-' . $page_id; |
| | 670 | $classes[] = 'page-id-' . $post_id; |
| 676 | 671 | |
| 677 | 672 | if ( get_pages( |
| 678 | 673 | array( |
| 679 | | 'parent' => $page_id, |
| | 674 | 'parent' => $post_id, |
| 680 | 675 | 'number' => 1, |
| 681 | 676 | ) |
| 682 | 677 | ) ) { |