From d72256028809c2f887466a225c4467dc80898d2d Mon Sep 17 00:00:00 2001 From: kcppdevelopers Date: Wed, 20 Jan 2016 17:01:52 +0530 Subject: [PATCH] remove payment_scripts, ref #395 --- .../wc-gateway-paypal-pro-payflow-angelleye.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/classes/wc-gateway-paypal-pro-payflow-angelleye.php b/classes/wc-gateway-paypal-pro-payflow-angelleye.php index 3c703a4fa..7b505c0f2 100644 --- a/classes/wc-gateway-paypal-pro-payflow-angelleye.php +++ b/classes/wc-gateway-paypal-pro-payflow-angelleye.php @@ -64,8 +64,6 @@ function __construct() { 'refunds' ); - add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ) ); - /* 1.6.6 */ add_action( 'woocommerce_update_options_payment_gateways', array( $this, 'process_admin_options' ) ); @@ -77,19 +75,7 @@ function add_log( $message ) { $this->log = new WC_Logger(); $this->log->add( 'paypal_payflow', $message ); } - /** - * payment_scripts function. - * - * @access public - */ - function payment_scripts() { - - if ( ! is_checkout() ) - return; - - wp_enqueue_style( 'wc-paypal-pro', plugins_url( 'assets/css/checkout.css', dirname( __FILE__ ) ) ); - wp_enqueue_script( 'card-type-detection', plugins_url( 'assets/js/card-type-detection.min.js', dirname( __FILE__ ) ), 'jquery', '1.0.0', true ); - } + /** * Initialise Gateway Settings Form Fields */