Changeset 2834942
- Timestamp:
- 12/16/2022 09:11:44 AM (3 years ago)
- Location:
- recruitly/trunk
- Files:
-
- 3 edited
-
admin/dataloader.php (modified) (4 diffs)
-
admin/includes/taxonomies.php (modified) (4 diffs)
-
recruitly-wp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
recruitly/trunk/admin/dataloader.php
r2831812 r2834942 98 98 )); 99 99 100 $industry_id = recruitly_get_taxonomy_id($job->industry, 'jobindustry'); 100 101 $sector_id = recruitly_get_taxonomy_id($job->sector, 'jobsector'); 101 102 $job_type_id = recruitly_get_taxonomy_id($job->jobType, 'jobtype'); … … 257 258 } 258 259 260 if (!empty($industry_id)) { 261 wp_set_post_terms($post_id, array($industry_id), 'jobindustry', false); 262 } 263 259 264 if (!empty($county_id)) { 260 265 wp_set_post_terms($post_id, array($county_id), 'jobcounty', false); … … 302 307 )); 303 308 309 $industry_id = recruitly_get_taxonomy_id($job->industry, 'jobindustry'); 304 310 $sector_id = recruitly_get_taxonomy_id($job->sector, 'jobsector'); 305 311 $job_type_id = recruitly_get_taxonomy_id($job->jobType, 'jobtype'); … … 475 481 } 476 482 483 if (!empty($industry_id)) { 484 wp_set_post_terms($post_id, array($industry_id), 'jobindustry', false); 485 } 486 477 487 if (!empty($sector_id)) { 478 488 wp_set_post_terms($post_id, array($sector_id), 'jobsector', false); -
recruitly/trunk/admin/includes/taxonomies.php
r2825268 r2834942 8 8 function recruitly_wordpress_setup_taxonomies() 9 9 { 10 11 try { 12 13 if (!taxonomy_exists('jobindustry')) { 14 15 $labels = array( 16 'name' => 'Job Industries', 17 'singular_name' => 'Job Industry', 18 'search_items' => 'Search Job Industries', 19 'all_items' => 'All Job Industries', 20 'edit_item' => 'Edit Job Industry', 21 'update_item' => 'Update Job Industry', 22 'add_new_item' => 'Add New Job Industry', 23 'new_item_name' => 'New Job Industry', 24 'menu_name' => 'Job Industries' 25 ); 26 27 register_taxonomy('jobindustry', RECRUITLY_POST_TYPE, array( 28 'hierarchical' => true, 29 'labels' => $labels, 30 'query_var' => true, 31 'show_admin_column' => false 32 )); 33 34 } 35 36 37 } catch (Throwable $ex) { 38 } 10 39 11 40 try { … … 262 291 recruitly_delete_terms_data('jobcounty'); 263 292 recruitly_delete_terms_data('jobcountry'); 264 265 293 recruitly_delete_terms_data('jobsector'); 266 294 recruitly_delete_terms_data('jobtype'); … … 271 299 unregister_taxonomy_for_object_type('jobcounty', RECRUITLY_POST_TYPE); 272 300 unregister_taxonomy_for_object_type('jobcountry', RECRUITLY_POST_TYPE); 273 274 301 unregister_taxonomy_for_object_type('jobsector', RECRUITLY_POST_TYPE); 275 302 unregister_taxonomy_for_object_type('jobtype', RECRUITLY_POST_TYPE); … … 282 309 283 310 try { 311 recruitly_delete_terms_data('jobindustry'); 312 unregister_taxonomy_for_object_type('jobindustry', RECRUITLY_POST_TYPE); 313 } catch (Throwable $ex) { 314 //Ignore for backward compatibility 315 } 316 317 try { 284 318 recruitly_delete_terms_data('joblocation'); 285 319 unregister_taxonomy_for_object_type('joblocation', RECRUITLY_POST_TYPE); -
recruitly/trunk/recruitly-wp.php
r2831810 r2834942 4 4 Plugin URI: https://recruitly.io 5 5 Description: Recruitly job board integration. 6 Version: 2.0.1 36 Version: 2.0.14 7 7 Author: Recruitly 8 8 Author URI: https://recruitly.io 9 9 License: GNU GENERAL PUBLIC LICENSE 10 10 */ 11 define('RECRUITLY_PLUGIN_VERSION', '2.0.1 3');11 define('RECRUITLY_PLUGIN_VERSION', '2.0.14'); 12 12 13 13 defined('RECRUITLY_POST_TYPE') or define('RECRUITLY_POST_TYPE', 'current-vacancies');
Note: See TracChangeset
for help on using the changeset viewer.