$vars = array(
'item' => array(
'uri' => $uri,
'alt' => html_entity_decode($caption),
'title' => html_entity_decode($caption),
),
'image_style' => $size,
);
$markup .= '<a href="'. file_create_url($uri) .'?title='. $caption .'" class="colorbox-load" rel="gallery">' . theme_image_formatter($vars) . '</a>';
One would expect parenthesis and similar characterts to be as they should, instead running the vars through the theme image formatters will make the title field have entities (which arent decoded by browsers when hovering over an image).
Comments
Comment #1
joachim commentedIf this is 7.x then it's likely a core problem.
Comment #2
jbrown commentedIt is not allowed to call theme functions - use theme().
Comment #3
marcingy commentedAs in #2 theme functions should not be invoked this way.