Plugin Directory

Changeset 3284869


Ignore:
Timestamp:
04/30/2025 12:23:52 PM (10 months ago)
Author:
appexpertsio
Message:

v1.4.5 - bug fixes and improvements

Location:
appexperts/trunk
Files:
3 added
7 edited

Legend:

Unmodified
Added
Removed
  • appexperts/trunk/includes/features/notification/helpers/app-expert-fcm-helper.php

    r3283430 r3284869  
    1010        $baseUrl = "https://iid.googleapis.com/iid/v1:$curl";
    1111
    12         $log=[
    13             "baseUrl"=>$baseUrl,
    14             "operation"=>$curl,
    15             "topic"=>$topic,
    16             "userToken"=>$userToken
    17         ];
     12
    1813        $mypush = array(
    1914            "to"=>"/topics/$topic",
     
    9590        $response = curl_exec($ch);
    9691        //Close request
    97         $log=[$response,$json,$headers,$arrayToSend];
    9892        if ($response === FALSE) {
    99             $log[]= 'FCM Send Error: ' . curl_error($ch);
    10093        } else {
    10194            $res_arr = json_decode($response, true);
    102             $log[]=$res_arr;
    10395            if (isset($res_arr['message_id']) && $res_arr['message_id']) {
    10496                $success = true;
     
    10799            }
    108100        }
    109         // $data= get_option('_as_send_log',true);
    110         // if(!is_array($data)) $data=[];
    111         // $data[]=$log;
    112         // update_option("_as_send_log",$data);
    113       //  App_Expert_Logger::info("push notification :",["Data"=>$log]);
    114101        curl_close($ch);
    115102        return $success;
  • appexperts/trunk/includes/init/common/app-expert-route.php

    r3283430 r3284869  
    3636
    3737            $validation_class=new $validator($request);
    38             $logs_data=[
    39                 "request"=>$request->get_params(),
    40                 "request_files"=>$request->get_file_params(),
    41                 "request_headers"=>$request->get_headers(),
    42                 "request_"=>$request->get_content_type(),
    43                ];
     38
    4439            if($validation_class->validate()){
    4540                $response= (new $call_back_class())->$call_back_method($request);
    46                 $logs_data["response"]=$response;
    47                 //App_Expert_Logger::info("Api Call {$request->get_route()} : success",$logs_data);
    4841                return $response;
    4942            }
    5043            $error = $validation_class->getErrors();
    51             $logs_data["errors"]=$error;
    52             //App_Expert_Logger::error("Api Call {$request->get_route()} : Validation Errors",$logs_data);
    5344            return count($error)?$error[0]:new WP_Error("something_went_wrong","error from App_Expert_Routes:add",[]);
    5445        }catch (Exception $e){
    55             $logs_data["exception"]=$e->getMessage();
    56             //App_Expert_Logger::fatal("Api Call {$request->get_route()} : Exception",$logs_data);
    5746            return App_Expert_Response::fail("something_went_wrong",$e->getMessage(),[]);
    5847        }
  • appexperts/trunk/includes/integrations/contact-form-7/app-expert-contact-form-7-init.php

    r2987398 r3284869  
    2020
    2121    public function add_logs($arr){
    22         $arr[] ='contact-form-7';
     22        // Removed logging functionality
    2323        return $arr;
    2424    }
  • appexperts/trunk/includes/integrations/peepso-messages/app-expert-peepso-chat-init.php

    r2987398 r3284869  
    3939    public function add_logs($arr)
    4040    {
    41         return [
    42             'peepso-core/peepso.php',
    43             'peepso-messages/peepsomessages.php'
    44         ];
     41        // Removed logging functionality
     42        return $arr;
    4543    }
    4644    public function is_classes_dependencies(){
  • appexperts/trunk/includes/integrations/sitepress-multilingual-cms/app-expert-sitepress-multilingual-cms-init.php

    r2987398 r3284869  
    2626    public function add_logs($arr)
    2727    {
    28         $arr[] ='sitepress-multilingual-cms';
     28        // Removed logging functionality
    2929        return $arr;
    3030    }
  • appexperts/trunk/includes/integrations/yith-woocommerce-wishlist/app-expert-yith-woocommerce-wishlist-init.php

    r2987398 r3284869  
    2525    public function add_logs($arr)
    2626    {
    27         $arr[] ='yith-woocommerce-wishlist';
     27        // Removed logging functionality
    2828        return $arr;
    2929    }
  • appexperts/trunk/readme.txt

    r3283430 r3284869  
    120120== Changelog ==
    121121
    122 = 1.4.5 2025-04-28 =
     122= 1.4.5 2025-04-30 =
    123123* Fix - Minor Bug Fixes & Improvements
    124124
Note: See TracChangeset for help on using the changeset viewer.