[wp-trac] [WordPress Trac] #34591: BugFix to WP_Scripts::do_item(), remove doubled "//"

WordPress Trac noreply at wordpress.org
Wed Nov 11 10:20:03 UTC 2015


#34591: BugFix to WP_Scripts::do_item(), remove doubled "//"
-------------------------------+------------------------------
 Reporter:  jan.mazanek        |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Script Loader      |     Version:  4.3.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by jan.mazanek):

 johnbillion, your update of description is not incorrect

 {{{
 $src = $this->base_url . $src;
 }}}

 Doesn't fix the problem.

 To fix the problem, there must be some code which ensures, there is
 exactly one slash on the border of $this->base_url and $src. Such code is
 for example:
 {{{
 $src = rtrim($this->base_url, '/'). '/' . ltrim($src, '/');
 }}}

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


More information about the wp-trac mailing list