Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #33691, comment 1


Ignore:
Timestamp:
09/03/2015 10:58:59 PM (9 years ago)
Author:
johnbillion
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33691, comment 1

    initial v1  
    11I like the idea behind this patch, but I would approach this differently.
    22
    3 If instead of storing the full site_domain for an image in a post, WP just stored protocol relative URLs (i.e. the image path but prefixed with '//' and no http or https) then switching a site from http to https (or vice versa for some reason) would be simpler.
     3If instead of storing the full site_domain for an image in a post, WP just stored protocol relative URLs (i.e. the image path but prefixed with `//` and no http or https) then switching a site from http to https (or vice versa for some reason) would be simpler.
    44
    55Your patch would be a great migration helper so that people who upgraded to a newer version of WP could benefit from such a core change.