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

WordPress Trac noreply at wordpress.org
Fri Sep 23 16:24:44 UTC 2016


#38148: Do not store protocol in the database
-------------------------+-----------------------------
 Reporter:  aristath     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 We should not store the protocol of files in the database.
 Instead of `http://mysite.com/wp-content/uploads/image.png` we could strip
 the protocol while saving the entry and save it as `//mysite.com/wp-
 content/uploads/image.png` instead.
 This will make http/https issues a lot easier to address, and hopefully
 ease migrations to HTTPS.
 There are a bunch of plugins out there that can do this, but they
 shouldn't have to... This is something that can be done in-core a lot more
 efficiently for everyone.

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


More information about the wp-trac mailing list