Opened 10 years ago
Closed 8 months ago
#35182 closed defect (bug) (worksforme)
Site icon URLs don't respect SSL in admin
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.4 |
| Component: | Administration | Keywords: | has-patch dev-feedback https |
| Focuses: | Cc: |
Description
It appears that the following check in wp_get_attachment_url():
if ( is_ssl() && ! is_admin() && 'wp-login.php' !== $GLOBALS['pagenow'] ) {
$url = set_url_scheme( $url );
}
prevents get_site_icon_url() from using SSL for serving the icon links in the head, which results in non-HTTPS icon URLs on all admin pages:
Attachments (1)
Change History (8)
#2
@
10 years ago
- Keywords https added
Hi @kasparsd,
Thanks for the report. I believe this is the same root issue affecting #34109.
#3
@
10 years ago
Yes, looks like it @joemcgill.
However, the attachment URLs are different because they might be inserted in post content, etc., while in this case we can safely assume that during is_ssl() the URLs should be HTTPS since they are used for HTML output only.
This ticket was mentioned in Slack in #core by binarykitten. View the logs.
10 years ago
#7
@
8 months ago
- Resolution set to worksforme
- Status changed from new to closed
Hi @kasparsd,
I have taken a look at this on the latest release and this appears to be working now. I assume that somewhere along the journey this has been fixed within WordPress, so as of such I am going to close this ticket. However if you do encounter this issue again please reopen the ticket. 😃
Ensure the correct URL when served via SSL