| @@ 193-196 (lines=4) @@ | ||
| 190 | $exclude_categories_new = get_option('geodir_exclude_cat_on_map_upgrade');
|
|
| 191 | ||
| 192 | // check if exclude categories saved before fix of categories identical names |
|
| 193 | if ($exclude_categories_new) {
|
|
| 194 | $gd_cat_taxonomy = isset($cat_taxonomy[0]) ? $cat_taxonomy[0] : ''; |
|
| 195 | $exclude_categories = !empty($exclude_categories[$gd_cat_taxonomy]) && is_array($exclude_categories[$gd_cat_taxonomy]) ? array_unique($exclude_categories[$gd_cat_taxonomy]) : array(); |
|
| 196 | } |
|
| 197 | ||
| 198 | $exclude_cat_str = implode(',', $exclude_categories);
|
|
| 199 | ||
| @@ 1633-1637 (lines=5) @@ | ||
| 1630 | foreach ($post_types as $key => $post_types_obj) : |
|
| 1631 | $checked = is_array($gd_post_types) && in_array($key, $gd_post_types) ? 'checked="checked"' : ''; |
|
| 1632 | $gd_taxonomy = geodir_get_taxonomies($key); |
|
| 1633 | if ($gd_cats_upgrade) {
|
|
| 1634 | $gd_cat_taxonomy = isset($gd_taxonomy[0]) ? $gd_taxonomy[0] : ''; |
|
| 1635 | $gd_cats = isset($gd_categs[$gd_cat_taxonomy]) ? $gd_categs[$gd_cat_taxonomy] : array(); |
|
| 1636 | $gd_cats = !empty($gd_cats) && is_array($gd_cats) ? array_unique($gd_cats) : array(); |
|
| 1637 | } |
|
| 1638 | $post_cat = implode(',', $gd_cats);
|
|
| 1639 | $gd_taxonomy_list = geodir_custom_taxonomy_walker($gd_taxonomy); |
|
| 1640 | ?> |
|