Plugin Directory

Changeset 3449363


Ignore:
Timestamp:
01/29/2026 08:43:16 AM (2 months ago)
Author:
pechenki
Message:

save old version

Location:
telsender/tags
Files:
52 added
3 edited

Legend:

Unmodified
Added
Removed
  • telsender/tags/1.14.13/clasess/TelsenderCore.php

    r3205026 r3449363  
    1818{
    1919
    20     public $version = '1.14.13';
     20    public $version = '1.14.9';
    2121
    2222    /**
     
    6464
    6565        add_action('wpforms_process_complete', array($this, 'tscfwc_wp_form'), 10, 4);
    66 
    67 
    68         add_action('woocommerce_after_order_object_save', array($this, 'addJobWc'), 99, 2);
    69         add_action('shutdown',array($this,'wcJobRun'));
    70 
    71         //add_action('woocommerce_after_order_object_save', array($this, 'tscfwc_woocommerce_new_order_status'), 99, 2);
     66        add_action('woocommerce_after_order_object_save', array($this, 'tscfwc_woocommerce_new_order_status'), 99, 2);
    7267        if ($this->tscfwc_setting_acsesform) {
    7368            add_action("wpcf7_mail_sent", array($this, 'sendCF7'), 99, 1);
     
    266261                $this->telegram->Chat_id = $wc_chek['wooc_chat_id'];
    267262            }
     263
    268264
    269265
     
    311307
    312308    /**
    313      * @param bool|\WC_Order|\WC_Order_Refund $order
    314      * @return void
    315      */
    316     public function addJobWc($order)
    317     {
    318         $wc_access_status = $this->tscfwc_setting_status_wc;
    319 
    320 
    321         if (in_array('wc-' . $order->get_status(), $wc_access_status) || !$wc_access_status) {
    322 
    323             $savedOrderId = get_option('telsender_wc_ids',true);
    324 
    325             if (!is_array($savedOrderId))  $savedOrderId = [];
    326 
    327             $savedOrderId[$order->get_id()] = $order->get_id();
    328 
    329             update_option('telsender_wc_ids',$savedOrderId);
    330         }
    331 
    332 
    333     }
    334     /**
    335      * lazy send WC message
    336      * @return void
    337      */
    338     public function wcJobRun()
    339     {
    340 
    341         $list_id = get_option('telsender_wc_ids',true);
    342         $wc_chek = $this->tscfwc_setting_setcheck;
    343 
    344         if (empty($list_id)) return;
    345 
    346         foreach ($list_id as $order_id) {
    347 
    348             $isSendn = get_post_meta($order_id, 'telsIsm', true);
    349 
    350             if (!$isSendn) {
    351                 update_post_meta($order_id, 'telsIsm', 1);
    352                 $wc = new TelsenderWc($order_id);
    353                 if ($wc_chek['wooc_check']) {
    354                     if (!empty($wc_chek['wooc_chat_id'])) {
    355                         $this->telegram->Chat_id = $wc_chek['wooc_chat_id'];
    356                     }
    357 
    358                     $message = $wc->getBillingDetails( $this->tscfwc_setting_wooc_template);
    359                     $this->telegram->SendMesage($message);
    360 
    361                 }
    362             }
    363         }
    364         update_option('telsender_wc_ids',[]);
    365 
    366         // $this->telegram->SendMesage($message);
    367 
    368     }
    369 
    370         /**
    371309     * ajax action
    372310     * @return save to db
  • telsender/tags/1.14.13/index.php

    r3205026 r3449363  
    88Description: Плагін відправляє заявки з форм у телеграм канал
    99Author: Pechenki
    10 Version: 1.14.13
     10Version: 1.14.12
    1111Author URI: https://coder.org.ua/dev/wordpress/telsender
    1212*/
  • telsender/tags/1.14.13/readme.txt

    r3205026 r3449363  
    55Requires PHP: 5.6
    66Tested up to: 6.4
    7 Stable tag: 1.14.13
     7Stable tag: 1.14.12
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8181
    8282== Changelog ==
    83 = 1.14.13 =
    84 - fix many messages
    85 - fix error
    86 
    87 
    8883= 1.14.12 =
    8984- CVE-2023-41683 - fix
Note: See TracChangeset for help on using the changeset viewer.