Plugin Directory

Changeset 2826949


Ignore:
Timestamp:
12/01/2022 11:26:57 AM (3 years ago)
Author:
prosolution
Message:

Revert 1.8.7 change

Location:
prosolution-wp-client/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • prosolution-wp-client/trunk/README.txt

    r2826944 r2826949  
    6666
    6767== Changelog ==
    68 
    69 = 1.8.7 =
    70 * Add new mechanic, now jobdetail that have new or pending status can be accessed via workexpert recruitment module
    7168
    7269= 1.8.6 =
  • prosolution-wp-client/trunk/prosolwpclient.php

    r2826944 r2826949  
    1717     * Plugin URI:        https://prosolution.com/produkte-und-services/workexpert.html
    1818     * Description:       WordPress client for ProSolution
    19      * Version:           1.8.7
     19     * Version:           1.8.6
    2020     * Author:            ProSolution
    2121     * Author URI:        https://www.prosolution.com
     
    3939
    4040    defined('PROSOLWPCLIENT_PLUGIN_NAME') or define('PROSOLWPCLIENT_PLUGIN_NAME', 'prosolwpclient');
    41     defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.8.7');
     41    defined('PROSOLWPCLIENT_PLUGIN_VERSION') or define('PROSOLWPCLIENT_PLUGIN_VERSION', '1.8.6');
    4242    defined('PROSOLWPCLIENT_BASE_NAME') or define('PROSOLWPCLIENT_BASE_NAME', plugin_basename(__FILE__));
    4343    defined('PROSOLWPCLIENT_ROOT_PATH') or define('PROSOLWPCLIENT_ROOT_PATH', plugin_dir_path(__FILE__));
  • prosolution-wp-client/trunk/public/class-prosolwpclient-public.php

    r2826941 r2826949  
    265265            $jobid = isset($_REQUEST['jobid']) ? $_REQUEST['jobid'] : '';
    266266            //$uuid='EAC87A80-9262-4C49-851F7C5FD02FBE64';
    267             $woexPreviewUUID = isset($_REQUEST['woexPreview']) ? $_REQUEST['woexPreview'] : '';
     267           
    268268            if ( $param_type == 'details' ) {
    269269                // project 1440,kev
     
    327327                    // var_dump($profession_decode);
    328328                } else {
    329                     $header_info = CBXProSolWpClient_TableHelper::proSol_apiConfig($issite);
    330                     $safe_data = array(
    331                         'jobid'             => $jobid,
    332                         'uuid'              => $woexPreviewUUID
    333                     );
    334                     $api_location = 'recruitment/';
    335                     $api_body  = array( "param" => json_encode( $safe_data ) );
    336                     $response    = wp_remote_post( $api_config['api_url'] .''. $api_location .'previewisvalid', array(
    337                         'headers' => $header_info,
    338                         'body'    => $api_body
    339                     ) );
    340                     if ( ! is_wp_error( $response ) ) {
    341                         $response_data = json_decode( $response['body'] )->data;
    342                         $result = $response_data->previewstatus;
    343                         if($result){
    344                             $response = wp_remote_get( $api_config['api_url'] . $api_location . 'jobdetail/' . $jobid, array( 'headers' => $header_info ) );
    345                             $response_data = json_decode( $response['body'] )->data;
    346 
    347                             $job_details_result = $response_data;
    348                         }else{
    349                             $job_details_result = sprintf( __( 'Database returns empty', 'prosolwpclient' ) );
    350                         }
    351                     }else{
    352                         $job_details_result = sprintf( __( 'Api response failed. Message: %s', 'prosolwpclient' ), $response->get_error_message() );
    353                     }
     329                    $job_details_result = sprintf( __( 'Database returns empty', 'prosolwpclient' ) );
    354330                }
    355331               
Note: See TracChangeset for help on using the changeset viewer.