Changeset 2307853
- Timestamp:
- 05/19/2020 10:26:48 AM (6 years ago)
- Location:
- wp-bullhorn-staffing
- Files:
-
- 1 edited
- 8 copied
-
tags/0.0.3 (copied) (copied from wp-bullhorn-staffing/trunk)
-
tags/0.0.3/bootstrap.php (copied) (copied from wp-bullhorn-staffing/trunk/bootstrap.php) (5 diffs)
-
tags/0.0.3/composer.json (copied) (copied from wp-bullhorn-staffing/trunk/composer.json)
-
tags/0.0.3/composer.lock (copied) (copied from wp-bullhorn-staffing/trunk/composer.lock)
-
tags/0.0.3/index.php (copied) (copied from wp-bullhorn-staffing/trunk/index.php)
-
tags/0.0.3/readme.txt (copied) (copied from wp-bullhorn-staffing/trunk/readme.txt)
-
tags/0.0.3/src (copied) (copied from wp-bullhorn-staffing/trunk/src)
-
tags/0.0.3/vendor (copied) (copied from wp-bullhorn-staffing/trunk/vendor)
-
trunk/bootstrap.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-bullhorn-staffing/tags/0.0.3/bootstrap.php
r2307842 r2307853 4 4 * Plugin URI: 5 5 * Description: Bullhorn Staffing synchronisation plugin 6 * Version: 0.0. 26 * Version: 0.0.3 7 7 * Author: Think studio 8 8 * Author URI: https://think.studio/ … … 48 48 } 49 49 50 public function isRestError() { 50 public function isRestError() 51 { 51 52 $this->initRestClient(); 52 53 return $this->restError; … … 82 83 return (new \WPBullhornStaffing\App\CandidateFinder())->find($user); 83 84 } catch (Exception $e) { 84 return null;85 return null; 85 86 } 86 87 } … … 88 89 protected function initRestClient() 89 90 { 90 if($this->restClient) { 91 if (!defined('BH_CLIENT_ID') || !defined('BH_CLIENT_SECRET') 92 || !defined('BH_API_USERNAME') || !defined('BH_API_PASSWORD') 93 ) { 94 return false; 95 } 96 if ($this->restClient) { 91 97 return $this->restClient; 92 98 } … … 127 133 $this->initRestClient(); 128 134 129 if (!$this->restClient) {135 if (!$this->restClient) { 130 136 return new WP_Error(500, 'REST not Working'); 131 137 } -
wp-bullhorn-staffing/trunk/bootstrap.php
r2307842 r2307853 4 4 * Plugin URI: 5 5 * Description: Bullhorn Staffing synchronisation plugin 6 * Version: 0.0. 26 * Version: 0.0.3 7 7 * Author: Think studio 8 8 * Author URI: https://think.studio/ … … 48 48 } 49 49 50 public function isRestError() { 50 public function isRestError() 51 { 51 52 $this->initRestClient(); 52 53 return $this->restError; … … 82 83 return (new \WPBullhornStaffing\App\CandidateFinder())->find($user); 83 84 } catch (Exception $e) { 84 return null;85 return null; 85 86 } 86 87 } … … 88 89 protected function initRestClient() 89 90 { 90 if($this->restClient) { 91 if (!defined('BH_CLIENT_ID') || !defined('BH_CLIENT_SECRET') 92 || !defined('BH_API_USERNAME') || !defined('BH_API_PASSWORD') 93 ) { 94 return false; 95 } 96 if ($this->restClient) { 91 97 return $this->restClient; 92 98 } … … 127 133 $this->initRestClient(); 128 134 129 if (!$this->restClient) {135 if (!$this->restClient) { 130 136 return new WP_Error(500, 'REST not Working'); 131 137 }
Note: See TracChangeset
for help on using the changeset viewer.