Skip to content

apply_filters( 'script_loader_tag' ) does not fire #48

@paulschreiber

Description

@paulschreiber

In concat-js.php, in do_items(), you have this check:

if ( is_array( $js_array['handles'] ) && count( $js_array['handles'] ) === 1 ) {

This condition never seems to be true, and the filter never fires.

When I am logged in, handles contains four items:

array (
  0 => 'hoverintent-js',
  1 => 'admin-bar',
  2 => 'main',
  3 => 'wp-embed',
)

When I am not logged in, handles contains two items:

array (
  0 => 'main',
  1 => 'wp-embed',
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions