[wp-trac] [WordPress Trac] #19902: blog_url() and get_blog_url() template tags
WordPress Trac
noreply at wordpress.org
Mon Sep 15 17:19:40 UTC 2014
#19902: blog_url() and get_blog_url() template tags
-----------------------------------+------------------------------
Reporter: johnjamesjacoby | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 3.3.1
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------------------
Comment (by SergeyBiryukov):
> It would be great if there were template tags available to get the blog
url, basically a wrapper for getting the options if it's set to a
WordPress page, and defaulting to home_url( '/' ) if not.
This sounds similar to how
[http://codex.wordpress.org/Function_Reference/is_front_page
is_front_page()] works, so I'd suggest `get_front_page_url()` and
`front_page_url()` for consistency.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19902#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list