Changeset 56424 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 08/22/2023 12:28:52 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r56192 r56424 671 671 672 672 if ( is_singular() ) { 673 $post_id = $wp_query->get_queried_object_id();674 673 $post = $wp_query->get_queried_object(); 674 $post_id = $post->ID; 675 675 $post_type = $post->post_type; 676 676 … … 715 715 } elseif ( is_page() ) { 716 716 $classes[] = 'page'; 717 718 $page_id = $wp_query->get_queried_object_id(); 719 720 $post = get_post( $page_id ); 721 722 $classes[] = 'page-id-' . $page_id; 717 $classes[] = 'page-id-' . $post_id; 723 718 724 719 if ( get_pages( 725 720 array( 726 'parent' => $p age_id,721 'parent' => $post_id, 727 722 'number' => 1, 728 723 )
Note: See TracChangeset
for help on using the changeset viewer.