This issue is to fix failing test - https://drupal.org/node/2009662#comment-7569357. The changes below are out of scope for 'Replace theme() with drupal_render() in picture module'
Undefined index: uri
Undefined index: dimensions
'picture' => array(
'variables' => array(
'style_name' => NULL,
- 'path' => NULL,
+ 'uri' => NULL,
'width' => NULL,
'height' => NULL,
'alt' => '',
@@ -163,7 +163,7 @@ function picture_theme() {
'variables' => array(
'src' => NULL,
'srcset' => NULL,
- 'dimension' => NULL,
+ 'dimensions' => NULL,
'media' => NULL,| Comment | File | Size | Author |
|---|---|---|---|
| #1 | undefined-variables-2026319-1.patch | 689 bytes | pplantinga |
Comments
Comment #1
pplantinga commentedJust rolled the changes into a patch.
Comment #2
pplantinga commentedOh yeah, status.
Comment #3
pplantinga commentedUpdated title to be more cause and less effect. Can someone take a look at it, it's blocking #2009662: [REGRESSION] Replace theme() with drupal_render() in picture module ?
Comment #4
thedavidmeister commentedComment #5
thedavidmeister commentedI can confirm that 'uri' looks like the correct variable name for theme_picture(), not only is it actually used in theme_picture() but it is passed to theme_image_style() which is looking for $variables['uri'] too.
Comment #6
thedavidmeister commentedtheme_picture_source() is using $variables['dimensions'] too.
Patch looks good.
Comment #7
alexpottCommitted c1f73e6 and pushed to 8.x. Thanks!
Comment #9
eli-t