milohuang / reverie

Reverie is a versatile HTML5 responsive WordPress framework based on ZURB's Foundation.
http://theakiba.com/reverie/
MIT License
916 stars 196 forks source link

$attributes not declared before concatenation (functions.php) #16

Closed rusteater closed 12 years ago

rusteater commented 12 years ago

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?

milohuang commented 12 years ago

Definitely! Have edited, thanks.