Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#19873 closed defect (bug) (duplicate)

Mixed content warning under HTTPS in wp_upload_dir function

Reported by: atow's profile 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 13 years ago.
Patch
19873.diff (507 bytes) - added by atow 13 years ago.

Download all attachments as: .zip

Change History (5)

@atow
13 years ago

Patch

@atow
13 years ago

#1 @atow
13 years ago

Reuploaded patch with correct name.

#2 @atow
13 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.

#3 @ocean90
13 years ago

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