[wp-trac] [WordPress Trac] #30105: css defining protocol

WordPress Trac noreply at wordpress.org
Sun Oct 26 20:42:05 UTC 2014


#30105: css defining protocol
------------------------------+------------------------------
 Reporter:  666threesixes666  |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Themes            |     Version:  3.8.2
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by voldemortensen):

 Replying to [comment:2 666threesixes666]:
 > so you're telling me i can set the url to {{{//site.com}}} with out the
 protocol and it will resolve the issue?

 He said that you cannot do that as relative urls don't work there.

 "(Note that relative URLs don't work there, see #21153.)"

 What he said is that get_template_diectory_uri(), the function used to
 fetch the url to be used, depends on your siteurl, and that changing the
 protocol there is possible. Either http:// or https://.

 It is also possible to filter the results to remove the protocol. (You
 could use the template_directory filter for this.)

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


More information about the wp-trac mailing list