[wp-trac] [WordPress Trac] #21620: Add conditional tag to check if current page is any of the blog-related pages
WordPress Trac
noreply at wordpress.org
Fri Oct 19 16:06:51 UTC 2012
#21620: Add conditional tag to check if current page is any of the blog-related
pages
------------------------------------+----------------------
Reporter: grantnorwood | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: wontfix
Keywords: dev-feedback has-patch |
------------------------------------+----------------------
Changes (by scribu):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
I don't think it's a good idea to mix up is_single() and is_archive() into
a new function. The conditional flags should largely be orthogonal, i.e.
not overlap.* Then, you could construct whatever composite flags you need,
outside of Core.
When I see is_blog_page(), I only think of the "page for blog posts" you
can set in WP Admin -> Settings -> Reading. If someone wants to propose
something like that, please open a new ticket.
* Yes, I know it's a mess with is_single() vs. is_singular() and
is_front_page() vs. is_home()
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21620#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list