[wp-trac] [WordPress Trac] #38148: Do not store URL protocol in the database

WordPress Trac noreply at wordpress.org
Mon Apr 1 19:52:26 UTC 2019


#38148: Do not store URL protocol in the database
-------------------------------------------------+-------------------------
 Reporter:  aristath                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Formatting                           |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  close 2nd-opinion reporter-feedback  |     Focuses:
-------------------------------------------------+-------------------------

Comment (by aristath):

 @desrosj this ticket was created 3 years ago, at a time when people were
 starting to mass-migrate all their sites from http to https.
 The fact that we're storing the URL protocols in the db usually requires
 changing a lot of things and causes massive issues when a site changes its
 protocol. If on the other hand we were not storing http/https when saving
 a URL in the db, most of these issues would be a thing of the past.
 For example try switching an http site with a slightly complex theme and a
 dozen plugins to use SSL... Images are usually the first thing to go when
 loading a page on such a site 'cause the browser just blocks them since
 they're getting loaded using the http url. Or at least that was the case
 back then, I haven't checked in the past couple of years so maybe
 something has changed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/38148#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list