[wp-trac] [WordPress Trac] #38255: inclusion of javascript script

WordPress Trac noreply at wordpress.org
Fri Oct 7 20:15:37 UTC 2016


#38255: inclusion of javascript script
---------------------------+-----------------------------
 Reporter:  nmoral         |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:  4.6.1
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 When I was working on my themes. I tried to include scripts with
 Javascript src wp but always include scripts with href.
 I find class.wp-scripts.php always add base url to my src.
 I think it is not good for two reasons:
 1 - it is best to use for local javascript src scripts.
 2 - I think it is not good practice to replace data theme because if
 developer wants src it is not good to add data without informing.

 I think both solution can be imagined:
 1 - just do not replace the data from themes
 2 - allow possibility for developer to choose to add automaticly base_url
 for javascript.

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


More information about the wp-trac mailing list