[wp-trac] [WordPress Trac] #19902: blog_url() and get_blog_url() template tags
WordPress Trac
noreply at wordpress.org
Tue Jan 5 14:02:09 UTC 2016
#19902: blog_url() and get_blog_url() template tags
-------------------------------------------------+-------------------------
Reporter: johnjamesjacoby | Owner: chriscct7
Type: feature request | Status: assigned
Priority: normal | Milestone: 4.5
Component: Permalinks | Version: 3.3.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests dev- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Comment (by ericlewis):
Replying to [comment:17 swissspidy]:
> I tend to think `get_post_type_archive_link()` should just work for
posts too, being in line with other post types and therefore making #35306
a duplicate of this ticket.
>
> At least `get_blog_url()` (or whatever it is called) should just be a
wrapper for that.
I had the same thought yesterday, but a minor utility of `get_blog_url()`
as it's been written for this ticket is that you can pass in `blog_id`,
similarly to `get_site_url()` and `get_home_url()`. Once we land this, we
can add support for the `post` post type in `get_post_type_archive_link()`
by delegating to `get_blog_url()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19902#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list