From: Steve Sutton Date: Wed, 2 Dec 2015 21:28:14 +0000 (-0500) Subject: fix the $deps and $cats from overpopulating X-Git-Tag: v0.2.3^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d0ebe72bcfa9ece3980a2053812fcb0f1e1e8b93;p=WP-Plugins%2Fstaffords-employment.git fix the $deps and $cats from overpopulating --- diff --git a/controllers/front.php b/controllers/front.php index a830fb6..eee9405 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -511,6 +511,7 @@ class staffords_employment_front $current_url = esc_url(add_query_arg($wp->query_string, '', home_url($wp->request))); $iterator = 1; foreach ($jobs as $job) { + $deps = $cats = array(); $custom = get_post_custom($job->ID); $depTax = wp_get_post_terms( $job->ID, STAFFORDS_EMP_TAX_DEPARTMENTS, 'name' ); foreach ($depTax as $depTerm) {