Plugin Directory

Changeset 3224301


Ignore:
Timestamp:
01/17/2025 02:29:46 PM (15 months ago)
Author:
masterhomepage
Message:

riskcube warning fixes

Location:
riskcube-von-creditreform-schweiz/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • riskcube-von-creditreform-schweiz/trunk/readme.txt

    r3206154 r3224301  
    55Tested up to: 6.7.1
    66Requires PHP: 7.4
    7 Stable Tag: 2.4.12.8
     7Stable Tag: 2.4.12.9
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    144144
    145145== Changelog ==
     146
     147= 2.4.12.9 =
     148**Bug Fixes**
     149- Fixed PHP warnings when new order is placed
     150
    146151= 2.4.12.8 =
    147152**Bug Fixes**
     
    149154
    150155= 2.4.12.7 =
    151 
    152156**Bug Fixes**
    153157- Fixed possible server error, when new order is created
  • riskcube-von-creditreform-schweiz/trunk/riskcube.php

    r3207462 r3224301  
    66 * Plugin Name: RiskCUBE von Creditreform Schweiz
    77 * Plugin URI:
    8  * Version: 2.4.12.8
     8 * Version: 2.4.12.9
    99 * Description: RiskCube
    1010 * Author: Masterhomepage GmbH
  • riskcube-von-creditreform-schweiz/trunk/src/Core/InvoiceGateway.php

    r2962806 r3224301  
    121121    public function email_instructions($order, $sent_to_admin, $plain_text = false)
    122122    {
    123         if ($this->instructions && !$sent_to_admin && 'custom' === $order->payment_method && $order->has_status('on-hold')) {
     123        $payment_method = $order->get_payment_method(); /* can not be called directly issue */
     124        if ($this->instructions && !$sent_to_admin && 'custom' === $payment_method && $order->has_status('on-hold')) {
    124125            echo wp_kses(wpautop(wptexturize($this->instructions)) . PHP_EOL, wp_kses_allowed_html());
    125126        }
  • riskcube-von-creditreform-schweiz/trunk/src/Core/RiskCube.php

    r3206152 r3224301  
    273273    public static function woocommerce_new_order($id_order)
    274274    {
    275         static::on_order_state_change($id_order, $from, $to_status);
     275        static::on_order_state_change($id_order, 'new', 'pending');
    276276    }
    277277
Note: See TracChangeset for help on using the changeset viewer.