[wp-trac] [WordPress Trac] #38910: `is_post_type_archive()` return true when the current page is tag archive
WordPress Trac
noreply at wordpress.org
Wed Nov 23 02:18:39 UTC 2016
#38910: `is_post_type_archive()` return true when the current page is tag archive
--------------------------+------------------------------
Reporter: yaquawa | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.6.1
Severity: normal | Resolution:
Keywords: | Focuses: template
--------------------------+------------------------------
Comment (by yaquawa):
Seems like I can't edit my ticket after I've submitted it?
I'm sorry, but I want to correct my ticket:
To get a stricter result of `is_post_type_archive()`, it should check if
the current queried_object is a `WP_Post` type or not.
↓
To get a stricter result of `is_post_type_archive()`, it should check if
the current queried_object is a **`WP_Post_Type`** type or not.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38910#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list