updated plugin GP Premium version 2.1.1

This commit is contained in:
2021-12-20 13:41:59 +00:00
committed by Gitium
parent 132b46b78f
commit d5dbb2bde7
86 changed files with 2903 additions and 455 deletions

View File

@ -220,7 +220,13 @@ class GeneratePress_Conditions {
$object = $queried_object->term_id;
}
} elseif ( is_post_type_archive() ) {
$location = 'archive:' . $wp_query->get( 'post_type' );
$post_type = $wp_query->get( 'post_type' );
if ( is_array( $post_type ) ) {
$location = 'archive:' . $post_type[0];
} else {
$location = 'archive:' . $post_type;
}
} elseif ( is_singular() ) {
if ( is_object( $post ) ) {