Opened 9 years ago
Closed 9 years ago
#35407 closed defect (bug) (fixed)
set_url_scheme() called inconsistently on URLs passed to `preview_post_link` filter
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Posts, Post Types | Keywords: | has-patch https |
Focuses: | Cc: |
Description
It'd expect it to be consistently applied to URLs passed to preview_post_link
, instead of applied in some cases and not applied in other cases.
In WordPress 4.4, get_preview_post_link()
was introduced with an optional third argument $preview_link
. In the cases where the $preview_link
is supplied in the codebase, the permalink is primed with set_url_scheme()
. However, internally, get_preview_post_link()
defines the preview link without running it through set_url_scheme()
.
Pragmatically, it appears only edit-form-advanced.php
is affected by this issue.
I discovered this issue while debugging a site where the admin is served over SSL with a different domain. However, I don't feel wholly confident in how WordPress generates URLs in this scenario.
Attachments (2)
Change History (8)
#3
@
9 years ago
- Owner set to jeremyfelt
- Status changed from new to accepted
I'll take a closer look at this today and tomorrow.
@johnbillion @jeremyfelt Who would be best to own this? Are you thinking you'd like to tackle it for 4.5 still?