Skip to content

Commit

Permalink
Updated to correct invalid reference to non-initialized variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Mathias committed Jul 22, 2013
1 parent 4aacfb5 commit 91800f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cf-asset-optimizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public static function getConcatenatedScriptUrl($wp_scripts, $footer, &$included
$included_scripts[$handle] = $wp_scripts->base_url . $included_scripts[$handle];
}
if (!empty($registered[$handle]->ver)) {
$included_scripts[$handle] = add_query_arg('ver', $ver, $included_scripts[$handle]);
$included_scripts[$handle] = add_query_arg('ver', $registered[$handle]->ver, $included_scripts[$handle]);
}
$included_scripts[$handle] = esc_url(apply_filters('script_loader_src', $included_scripts[$handle], $handle));
}
Expand Down Expand Up @@ -740,7 +740,7 @@ public static function getConcatenatedStyleUrl($wp_styles, &$included_styles) {
$included_scripts[$handle] = $wp_styles->base_url . $included_styles[$handle];
}
if (!empty($registered[$handle]->ver)) {
$included_styles[$handle] = add_query_arg('ver', $ver, $included_styles[$handle]);
$included_styles[$handle] = add_query_arg('ver', $registered[$handle]->ver, $included_styles[$handle]);
}
$included_styles[$handle] = esc_url(apply_filters('script_loader_src', $included_styles[$handle], $handle));
}
Expand Down

0 comments on commit 91800f2

Please sign in to comment.