[wp-trac] [WordPress Trac] #52497: New filter "wp_script_attributes" doesn't take effort in enqueued scripts
WordPress Trac
noreply at wordpress.org
Thu Feb 11 10:06:46 UTC 2021
#52497: New filter "wp_script_attributes" doesn't take effort in enqueued scripts
---------------------------+-----------------------------
Reporter: szaqal21 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: trunk
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
"wp_script_attributes" filter hasn't been added to tag output in
WP_Scripts->do_item():
{{{
$tag .= sprintf( "<script%s src='%s' id='%s-js'></script>\n",
$this->type_attr, $src, esc_attr( $handle ) );
}}}
adding defer or async attributes still requires usage of
"script_loader_src" or "script_loader_tag" filters.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52497>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list