Unknown variable 'formats' in content.php?
-
Quick bug report (not sure if this is the place for it, but hey): I just noticed one of my blogs was showing the following PHP notice: Undefined variable: formats in […] on line 34. (It’s running Scrawl 1.0.7.)
This variable does get referenced in content.php at line 34 but is only defined within scrawl_post_format(), which doesn’t get called until later (line 35, actually). In fact, the formats check should probably not even be there: it is handled by scrawl_post_format() anyway.
I fixed it like described here: http://janboddez.be/2015/08/a-small-theme-fix/. Of course, depending on your error reporting level, you may not even see this notice. (In which case it doesn’t really do harm, either.)
The topic ‘Unknown variable 'formats' in content.php?’ is closed to new replies.
