[wp-trac] [WordPress Trac] #19902: blog_url() and get_blog_url() template tags

WordPress Trac noreply at wordpress.org
Mon Jan 4 21:25:16 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                                       |
-------------------------------------------------+-------------------------
Changes (by ericlewis):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests dev-
     feedback


Comment:

 Let's circle back to function naming. These options are on the table:

 1. Since we have
 [https://codex.wordpress.org/Function_Reference/get_post_type_archive_link
 get_post_type_archive_link()] for custom post types, perhaps
 `get_post_archive_link()`?
 2. `get_blog_index_url()`
 3. `get_blog_page_url()`

 I lean towards the first. It's to the point, echoes other existing
 functions, and doesn't introduce new jargon ("blog index") or awkward
 naming ("blog page").

--
Ticket URL: <https://core.trac.wordpress.org/ticket/19902#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list