Apparently theme_image_style was broken at some point, but http://drupalcode.org/project/drupal.git/commitdiff/fbd6af0b fixed it part way. But it has no test coverage, and is currently still broken.

I found this while working on #1175764-7: Have theme('image_style') inject the style name as a class

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim.plunkett’s picture

Status: Active » Needs review
FileSize
1.74 KB
1.3 KB

See attached.

sun’s picture

Component: image system » image.module
Priority: Major » Critical
Issue tags: +Regression
Berdir’s picture

Status: Needs review » Reviewed & tested by the community

The change makes sense is required for theme() to pick the right arguments passed to that function. I'm not actually sure if the referenced commit is a partial fix of an existing bug or if it introduced the bug by doing an incomplete change but that doesn't really matter.

Oh, and if you think URI is a weird thing to pass to a image style theme function, that's being discussed in #1643890: Change URI to SRC in theme_image and similar.

Tests prove that this fixes the issue and is currently broken, so I think this is ready to go. timplunkett also confirmed to me in IRC that the grammar in the assertion message is valid which looked a bit strange to me as a non-native speaker.

tim.plunkett’s picture

FileSize
1.75 KB

Okay I double checked with xjm and my grammar was a bit off after all.

Leaving RTBC, since I only changed the assertion message.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.