PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 All 142 releases
← All changes | inc/order/lp-order-functions.php +5 -3 4.4.2 → 4.4.10 View file →
@@ -197,9 +197,9 @@
197 197 ? $currency
198 198 : learn_press_get_currency_symbol()
199 199 );
200 200 $thousands_separator = esc_html( LP_Settings::get_option( 'thousands_separator', ',' ) );
201 - $number_of_decimals = esc_html( LP_Settings::get_option( 'number_of_decimals', 2 ) );
201 + $number_of_decimals = absint( LP_Settings::get_option( 'number_of_decimals', 2 ) );
202 202 $decimals_separator = esc_html( LP_Settings::get_option( 'decimals_separator', '.' ) );
203 203
204 204 switch ( LP_Settings::get_option( 'currency_pos' ) ) {
205 205 default:
@@ -483,10 +483,12 @@
483 483 $message['status'] = 'success';
484 484 $message['content'] = sprintf( __( 'Order number <strong>%s</strong> has been cancelled', 'learnpress' ), $order->get_order_number() );
485 485 } else {
486 486 throw new Exception(
487 - __( 'The order number <strong>%s</strong> can not be cancelled.', 'learnpress' ),
488 - $order->get_order_number()
487 + sprintf(
488 + __( 'The order number <strong>%s</strong> can not be cancelled.', 'learnpress' ),
489 + $order->get_order_number()
490 + )
489 491 );
490 492 }
491 493 } catch ( Throwable $e ) {
492 494 $message['content'] = $e->getMessage();