Skip to content
Snippets Groups Projects
Commit 16a30f19 authored by Angie Byron's avatar Angie Byron
Browse files

#721400 follow-up by pwolanin: Remove unnecessary query strings from CSS/JS files.

parent ac8c96f4
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -3019,7 +3019,7 @@ function drupal_pre_render_styles($elements) { ...@@ -3019,7 +3019,7 @@ function drupal_pre_render_styles($elements) {
// for the aggregate file. // for the aggregate file.
if (isset($group['data'])) { if (isset($group['data'])) {
$element = $link_element_defaults; $element = $link_element_defaults;
$element['#attributes']['href'] = file_create_url($group['data']) . '?' . $query_string; $element['#attributes']['href'] = file_create_url($group['data']);
$element['#attributes']['media'] = $group['media']; $element['#attributes']['media'] = $group['media'];
$element['#browsers'] = $group['browsers']; $element['#browsers'] = $group['browsers'];
$elements[] = $element; $elements[] = $element;
...@@ -3802,7 +3802,7 @@ function drupal_get_js($scope = 'header', $javascript = NULL) { ...@@ -3802,7 +3802,7 @@ function drupal_get_js($scope = 'header', $javascript = NULL) {
// Only include the file if was written successfully. Errors are logged // Only include the file if was written successfully. Errors are logged
// using watchdog. // using watchdog.
if ($uri) { if ($uri) {
$preprocess_file = file_create_url($uri) . '?' . $default_query_string; $preprocess_file = file_create_url($uri);
$js_element = $element; $js_element = $element;
$js_element['#attributes']['src'] = $preprocess_file; $js_element['#attributes']['src'] = $preprocess_file;
$processed[$key] = theme('html_tag', array('element' => $js_element)); $processed[$key] = theme('html_tag', array('element' => $js_element));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment