WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #45469, comment 6


Ignore:
Timestamp:
12/03/2018 03:34:44 PM (9 months ago)
Author:
gziolo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45469, comment 6

    initial v1  
    11> @gziolo You mean in wp_default_packages_scripts(). That should be covered by \WP_Scripts::do_item(), which automatically adds the base URL if it's a relative path.
    22
    3 Do you see an easy to extract shared logic into its own function? At least the following is almost the same for both functions:
     3Do you see an easy way to extract shared logic into its own function? At least the following is almost the same for both functions:
    44
    55{{{#!php