WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22249, comment 15


Ignore:
Timestamp:
11/24/2014 04:09:47 AM (6 years ago)
Author:
jtsternberg
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22249, comment 15

    initial v1  
    22- Change `$in_footer` param for `wp_register_script` and `wp_enqueue_script` to an `$args` array where 'attributes' could be passed with an array of attribute key/value pairs. Also accepts 'in_footer' as a parameter and has a back-compat check for a passed non-array value.
    33- Includes the `src` attribute/value, the `type` attribute/value, and any attributes passed in via the new `$args` param on `wp_register_script` and `wp_enqueue_script` in the array of attributes passed to the new `script_loader_attributes` filter.
     4
     5If this passes muster, and all agree, I can apply the same treatment to the css side of things.