commit bd2dae1625f616810dfadc74b0d7e5ded54e2ea8 Author: Jen Lampton Date: Mon Jul 15 11:54:42 2013 -0700 new version of patch diff --git a/core/includes/theme.maintenance.inc b/core/includes/theme.maintenance.inc index 2bfbd96..bfdce56 100644 --- a/core/includes/theme.maintenance.inc +++ b/core/includes/theme.maintenance.inc @@ -180,7 +180,7 @@ function theme_authorize_report($variables) { $item_list = array( '#theme' => 'item_list', '#items' => $items, - '#prefix' => "

$heading

", + '#prefix' => '

' . $heading . '

', ); $output .= drupal_render($item_list); } diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php index 00f1921..d8505bc 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php @@ -31,8 +31,14 @@ function testItemList() { $expected = ''; $this->assertThemeOutput('item_list', $variables, $expected, 'Empty %callback generates no output.'); + $variables = array(); + $variables['title'] = 'Some title'; + $expected = ''; + $this->assertThemeOutput('item_list', $variables, $expected, 'Empty %callback with title generates no output.'); + // Verify nested item lists. $variables = array(); + $variables['title'] = 'Some title'; $variables['attributes'] = array( 'id' => 'parentlist', ); @@ -105,6 +111,7 @@ function testItemList() { $inner_c .= ''; $expected = '
'; + $expected .= '

Some title

'; $expected .= '