Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -670,8 +670,8 @@ function get_body_class( $css_class = '' ) {
|
||||
}
|
||||
|
||||
if ( is_singular() ) {
|
||||
$post_id = $wp_query->get_queried_object_id();
|
||||
$post = $wp_query->get_queried_object();
|
||||
$post_id = $post->ID;
|
||||
$post_type = $post->post_type;
|
||||
|
||||
if ( is_page_template() ) {
|
||||
@@ -714,16 +714,11 @@ function get_body_class( $css_class = '' ) {
|
||||
$classes[] = 'attachment-' . str_replace( $mime_prefix, '', $mime_type );
|
||||
} elseif ( is_page() ) {
|
||||
$classes[] = 'page';
|
||||
|
||||
$page_id = $wp_query->get_queried_object_id();
|
||||
|
||||
$post = get_post( $page_id );
|
||||
|
||||
$classes[] = 'page-id-' . $page_id;
|
||||
$classes[] = 'page-id-' . $post_id;
|
||||
|
||||
if ( get_pages(
|
||||
array(
|
||||
'parent' => $page_id,
|
||||
'parent' => $post_id,
|
||||
'number' => 1,
|
||||
)
|
||||
) ) {
|
||||
|
||||
Reference in New Issue
Block a user