From b554832512d93181ad2c0f881e3523a0f9e6f055 Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon <yahgrp@poplarware.com> Date: Thu, 10 Jan 2013 15:46:58 -0800 Subject: [PATCH] Issue #1884840 by pwolanin: Remove mention of md5 hashes from some code comments --- core/includes/ajax.inc | 4 ++-- core/lib/Drupal/Core/Ajax/AjaxResponse.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/includes/ajax.inc b/core/includes/ajax.inc index f0dca7413161..a7fbe7bb124f 100644 --- a/core/includes/ajax.inc +++ b/core/includes/ajax.inc @@ -251,8 +251,8 @@ function ajax_render($commands = array()) { // reliably diffed with array_diff_key(), since the number can change // due to factors unrelated to the inline content, so for now, we strip // the inline items from Ajax responses, and can add support for them - // when drupal_add_css() and drupal_add_js() are changed to using md5() - // or some other hash of the inline content. + // when drupal_add_css() and drupal_add_js() are changed to use a hash + // of the inline content as the array key. foreach ($items[$type] as $key => $item) { if (is_numeric($key)) { unset($items[$type][$key]); diff --git a/core/lib/Drupal/Core/Ajax/AjaxResponse.php b/core/lib/Drupal/Core/Ajax/AjaxResponse.php index 516325b9045a..d87c4a625569 100644 --- a/core/lib/Drupal/Core/Ajax/AjaxResponse.php +++ b/core/lib/Drupal/Core/Ajax/AjaxResponse.php @@ -93,8 +93,8 @@ protected function ajaxRender(Request $request) { // reliably diffed with array_diff_key(), since the number can change // due to factors unrelated to the inline content, so for now, we // strip the inline items from Ajax responses, and can add support for - // them when drupal_add_css() and drupal_add_js() are changed to using - // md5() or some other hash of the inline content. + // them when drupal_add_css() and drupal_add_js() are changed to use + // a hash of the inline content as the array key. foreach ($items[$type] as $key => $item) { if (is_numeric($key)) { unset($items[$type][$key]); -- GitLab