Make WordPress Core

Opened 9 years ago

Last modified 5 years ago

#29727 new enhancement

Porting self-hosted Wordpress to HTTPS: mixed content

Reported by: jsha's profile jsha Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0
Component: Media Keywords: has-patch, needs-testing, https
Focuses: Cc:

Description

When moving a self-hosted Wordpress blog from HTTP to HTTPS (by editing the site URL at /wp-admin/options-general.php), I run into trouble because image links embedded in existing posts still point to HTTP, even though those images are hosted by my Wordpress blog and now support HTTPS.

It would be great if Wordpress could automatically rewrite images in existing posts when site URL is changed to HTTPS.

Attachments (2)

29727.diff (1.4 KB) - added by thomaswm 8 years ago.
Replace local HTTP URLs in post content using a filter
29727.2.diff (408 bytes) - added by thomaswm 8 years ago.
Send "Upgrade Insecure Requests" HTTP header

Download all attachments as: .zip

Change History (11)

#1 @mikemike86
9 years ago

  • Type changed from defect (bug) to enhancement

#2 @DrewAPicture
9 years ago

  • Component changed from General to Media

#4 @SergeyBiryukov
9 years ago

#28521 would resolve this.

#5 @thomaswm
8 years ago

Related: #33691

#6 @johnbillion
8 years ago

#33691 was marked as a duplicate.

@thomaswm
8 years ago

Replace local HTTP URLs in post content using a filter

@thomaswm
8 years ago

Send "Upgrade Insecure Requests" HTTP header

#7 @thomaswm
8 years ago

I've uploaded two different patches:

#8 @thomaswm
8 years ago

  • Keywords has-patch needs-testing added

#9 @johnbillion
8 years ago

  • Keywords https added
Note: See TracTickets for help on using tickets.