Skip to content

Commit

Permalink
Fix an array to string conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tynanbe committed Dec 15, 2023
1 parent 5f9ad3b commit 4850549
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tag.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,7 @@ private static function _build_type_tags()
//An Archive is a Category, Tag, Author, Date, Custom Post Type or Custom Taxonomy based pages.
if (is_category() || is_tag() || is_tax()) {
$tags[] = self::TYPE_ARCHIVE_TERM . $queried_obj_id;
} elseif (is_post_type_archive()) {
global $wp_query;
$post_type = (string) $wp_query->get('post_type');
} elseif (is_post_type_archive() && ($post_type = get_post_type())) {
$tags[] = self::TYPE_ARCHIVE_POSTTYPE . $post_type;
} elseif (is_author()) {
$tags[] = self::TYPE_AUTHOR . $queried_obj_id;
Expand Down

0 comments on commit 4850549

Please sign in to comment.