#19942 closed defect (bug) (fixed)
Simplify themes preview link building
Reported by: | ocean90 | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | minor | Version: | 2.8 |
Component: | Themes | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Just use home_url()
.
Attachments (1)
Change History (4)
#3
@
12 years ago
Just to note that this was actually incorrect if we wanted to match the admin's scheme — home_url()
defaults to 'http' when is_admin()
is true. See #20137, [20051].
However, now that the theme customizer is in core (#19910, [19995]) this preview code will likely be used for no-js previewing, which does *not* need to match the admin's scheme as it will load in a new tab.
Note: See
TracTickets for help on using
tickets.
In [19811]: