WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#19873 closed defect (bug) (duplicate)

Mixed content warning under HTTPS in wp_upload_dir function

Reported by: atow Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: General Keywords: has-patch
Focuses: Cc:

Description

In wp_upload_dir (wp-includes/functions.php), there is a call to get_option('siteurl'). This should use site_url() instead. This will prevent the mixed content warning when the admin is being accessed via SSL.

Attachments (2)

functions.diff.php (471 bytes) - added by atow 2 years ago.
Patch
19873.diff (507 bytes) - added by atow 2 years ago.

Download all attachments as: .zip

Change History (5)

atow2 years ago

Patch

atow2 years ago

comment:1 atow2 years ago

Reuploaded patch with correct name.

comment:2 atow2 years ago

The underlying reason for this patch was to fix a bug with the featured post thumbnail causing a mixed content error in SSL admin. Originally added a filter for admin_post_thumbnail_html, but thought patching this might be better.

comment:3 ocean902 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.