-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
This ID:
nginx-http-concat/cssconcat.php
Line 136 in cda3f4c
echo apply_filters( 'ngx_http_concat_style_loader_tag', "<link rel='stylesheet' id='$media-css-$idx' href='$href' type='text/css' media='$media' />\n", $handles, $href, $media ); |
the do_items()
function is called twice, once for the head, once for the footer. This means the loop that sets the number in the ID is run twice, resetting on the second instance, resulting in the doubled ID.
Simplest fix might be to increment the number sufficiently on one of the loops. e.g. adding between these lines
nginx-http-concat/cssconcat.php
Lines 110 to 111 in cda3f4c
foreach( $stylesheets as $idx => $stylesheets_group ) { | |
foreach( $stylesheets_group as $media => $css ) { |
if ( $group ) { $idx += 1000; }
Metadata
Metadata
Assignees
Labels
No labels