milohuang/reverie — Issue #16: $attributes being concatenated on before ever being declared (functions.php)
Author: rusteater
Created: 2011-12-29 06:05:34+00:00
State: open

When adding images with captions to posts, I get the following error:

> Notice: Undefined variable: attributes in \wp-content\themes\reverie\functions.php on line 75

Here's the line in question:

$attributes .= ' class="figure ' . esc_attr( $attr['align'] ) . '"';

Shouldn't this rather be:

$attributes = ' class="figure ' . esc_attr( $attr['align'] ) . '"';

without the concatenation?