Issue #1884840 by pwolanin: Remove mention of md5 hashes from some code comments

8.0.x
Jennifer Hodgdon 2013-01-10 15:46:58 -08:00
parent 17fbe85995
commit b554832512
2 changed files with 4 additions and 4 deletions

View File

@ -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]);

View File

@ -93,8 +93,8 @@ class AjaxResponse extends JsonResponse {
// 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]);