#33857 closed feature request (wontfix)
Add new function the_home_url()
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | has-patch |
Focuses: | template | Cc: |
Description
I am thinking theme should not have echo
.
It enables <?php the_home_url() ?>
so it is friendly for the theme designer.
Attachments (3)
Change History (7)
This ticket was mentioned in Slack in #core by noisysocks. View the logs.
6 years ago
Note: See
TracTickets for help on using
tickets.
Hey @miyauchi, thanks for the suggestion and for the patch! This was discussed during a triage session (see Slack link above) and it was decided that we don't want to add this new API, because:
the_{thing}
functions are for outputting big sections of HTML e.g. in a template, not strings like the one returned byhome_url
.the_{thing}
andget_the_{thing}
, but adding this would make it so that there isthe_{thing}
and{thing}
.I'm going to close this out as
wontfix
for now.