Update to Drupal 8.0.2. For more information, see https://www.drupal.org/drupal-8.0.2-release-notes
This commit is contained in:
parent
1a0e9d9fac
commit
a6b049dd05
538 changed files with 5247 additions and 1594 deletions
|
|
@ -727,7 +727,8 @@ function template_preprocess_links(&$variables) {
|
|||
* to an empty string, but can be set to NULL for the attribute to be
|
||||
* omitted. Usually, neither omission nor an empty string satisfies
|
||||
* accessibility requirements, so it is strongly encouraged for code
|
||||
* calling _theme('image') to pass a meaningful value for this variable.
|
||||
* building variables for image.html.twig templates to pass a meaningful
|
||||
* value for this variable.
|
||||
* - http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.8
|
||||
* - http://www.w3.org/TR/xhtml1/dtds.html
|
||||
* - http://dev.w3.org/html5/spec/Overview.html#alt
|
||||
|
|
@ -1519,7 +1520,7 @@ function template_preprocess_field(&$variables, $hook) {
|
|||
}
|
||||
|
||||
// Merge attributes when a single-value field has a hidden label.
|
||||
if ($element['#label_display'] == 'hidden' && !$variables['multiple']) {
|
||||
if ($element['#label_display'] == 'hidden' && !$variables['multiple'] && !empty($element['#items'][0]->_attributes)) {
|
||||
$variables['attributes'] = NestedArray::mergeDeep($variables['attributes'], (array) $element['#items'][0]->_attributes);
|
||||
}
|
||||
|
||||
|
|
@ -1721,11 +1722,12 @@ function drupal_common_theme() {
|
|||
'image' => array(
|
||||
// HTML 4 and XHTML 1.0 always require an alt attribute. The HTML 5 draft
|
||||
// allows the alt attribute to be omitted in some cases. Therefore,
|
||||
// default the alt attribute to an empty string, but allow code calling
|
||||
// _theme('image') to pass explicit NULL for it to be omitted. Usually,
|
||||
// neither omission nor an empty string satisfies accessibility
|
||||
// requirements, so it is strongly encouraged for code calling
|
||||
// _theme('image') to pass a meaningful value for the alt variable.
|
||||
// default the alt attribute to an empty string, but allow code providing
|
||||
// variables to image.html.twig templates to pass explicit NULL for it to
|
||||
// be omitted. Usually, neither omission nor an empty string satisfies
|
||||
// accessibility requirements, so it is strongly encouraged for code
|
||||
// building variables for image.html.twig templates to pass a meaningful
|
||||
// value for the alt variable.
|
||||
// - http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.8
|
||||
// - http://www.w3.org/TR/xhtml1/dtds.html
|
||||
// - http://dev.w3.org/html5/spec/Overview.html#alt
|
||||
|
|
@ -1765,7 +1767,7 @@ function drupal_common_theme() {
|
|||
'render element' => 'page',
|
||||
),
|
||||
'maintenance_task_list' => array(
|
||||
'variables' => array('items' => NULL, 'active' => NULL, 'variant' => NULL),
|
||||
'variables' => array('items' => NULL, 'active' => NULL, 'variant' => NULL),
|
||||
),
|
||||
'authorize_report' => array(
|
||||
'variables' => ['messages' => [], 'attributes' => []],
|
||||
|
|
|
|||
Reference in a new issue