Monthly Archives: April 2012
Common PHP mistakes
In doing more WordPress work, I ran across more bad code in a theme. Bad code was a reoccurring theme in this theme. global $options; foreach ($options as $value) { if (get_settings( $value[’id’] ) === FALSE) { $$value[’id’] = $value[’std’]; … Continue reading
Posted in Bad Code, Geek, PHP, Uncategorized, Web Development, Wordpress
Leave a comment
Bad WordPress code, or is that redundant?
I discovered two levels of bad/bizarre/baffling code while working on customizing ghostpool.com’s Delapidated theme for WordPress. The sidebar and slider were not working because they both use the is_home function to determine whether or not to display. The WordPress Codex … Continue reading
Posted in PHP, Web Development, Wordpress
2 Comments