pierrehenri220

"Braintree for WooCommerce Payment Gateway" v3.2.1 Wordpress Plugin Patch for "Woocommerce" v9.3.3 a

Oct 7th, 2024
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.75 KB | Software | 0 0
  1. diff -ruN .\woocommerce-gateway-paypal-powered-by-braintree_original\/vendor/braintree/braintree_php/lib/Braintree/GraphQLClient.php .\woocommerce-gateway-paypal-powered-by-braintree\/vendor/braintree/braintree_php/lib/Braintree/GraphQLClient.php
  2. --- .\woocommerce-gateway-paypal-powered-by-braintree_original\/vendor/braintree/braintree_php/lib/Braintree/GraphQLClient.php  2022-10-12 06:11:06.000000000 +0900
  3. +++ .\woocommerce-gateway-paypal-powered-by-braintree\/vendor/braintree/braintree_php/lib/Braintree/GraphQLClient.php   2024-10-07 15:33:46.210559000 +0900
  4. @@ -8,6 +8,10 @@
  5.   */
  6.  class GraphQLClient
  7.  {
  8. +
  9. +       public $_service;
  10. +
  11. +
  12.      // phpcs:ignore PEAR.Commenting.FunctionComment.Missing
  13.      public function __construct($config)
  14.      {
  15. diff -ruN .\woocommerce-gateway-paypal-powered-by-braintree_original\/vendor/skyverge/wc-plugin-framework/woocommerce/class-sv-wc-helper.php .\woocommerce-gateway-paypal-powered-by-braintree\/vendor/skyverge/wc-plugin-framework/woocommerce/class-sv-wc-helper.php
  16. --- .\woocommerce-gateway-paypal-powered-by-braintree_original\/vendor/skyverge/wc-plugin-framework/woocommerce/class-sv-wc-helper.php  2024-03-11 19:43:32.000000000 +0900
  17. +++ .\woocommerce-gateway-paypal-powered-by-braintree\/vendor/skyverge/wc-plugin-framework/woocommerce/class-sv-wc-helper.php   2024-10-07 19:47:55.464158200 +0900
  18. @@ -708,7 +708,7 @@
  19.          */
  20.         public static function wc_add_notice( $message, $notice_type = 'success' ) {
  21.  
  22. -               if ( function_exists( 'wc_add_notice' ) ) {
  23. +               if ( function_exists( 'wc_add_notice' ) && isset( WC()->session ) ) {
  24.                         wc_add_notice( $message, $notice_type );
  25.                 }
  26.         }
  27. C:\Program Files\KDiff3\bin\diff.exe: .\woocommerce-gateway-paypal-powered-by-braintree_original\/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/api: No such file or directory
  28. diff -ruN .\woocommerce-gateway-paypal-powered-by-braintree_original\/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php .\woocommerce-gateway-paypal-powered-by-braintree\/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php
  29. --- .\woocommerce-gateway-paypal-powered-by-braintree_original\/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php  2024-03-11 19:43:32.000000000 +0900
  30. +++ .\woocommerce-gateway-paypal-powered-by-braintree\/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php   2024-10-07 18:16:13.849491800 +0900
  31. @@ -476,12 +476,15 @@
  32.  
  33.                 $messages = [];
  34.  
  35. -               if ( function_exists( 'wc_get_notices' ) && ( $notices = wc_get_notices( $type ) ) ) {
  36. -                       foreach ( $notices as $notice ) {
  37. -                               $message = $notice['notice'] ?? $notice;
  38. +               if ( function_exists( 'wc_get_notices' ) && isset( WC()->session ) ) {
  39. +                       $notices = wc_get_notices( $type );
  40. +                       if ( isset( $notices ) && is_array( $notices ) ) {
  41. +                               foreach ( $notices as $notice ) {
  42. +                                       $message = $notice['notice'] ?? $notice;
  43.  
  44. -                               // this will handle some log data eventually
  45. -                               $messages[] = htmlspecialchars( is_array( $message ) ? print_r( $message, true ) : $message );
  46. +                                       // this will handle some log data eventually
  47. +                                       $messages[] = htmlspecialchars( is_array( $message ) ? print_r( $message, true ) : $message );
  48. +                               }
  49.                         }
  50.                 }
  51.  
Advertisement
Add Comment
Please, Sign In to add comment