Enqueue 'wc-credit-card-form' before displaying credit card form

The commit c0b7429 failed to keep the line that enqueued 'wc-credit-card-form' script when the method WC_Payment_Gateway::credit_card_form() was renamed to WC_Payment_Gateway_CC::form().
This commit is contained in:
Rodrigo Primo 2016-05-17 16:42:18 -03:00
parent d8614cd47e
commit 086628fba2
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ class WC_Payment_Gateway_CC extends WC_Payment_Gateway {
* @since 2.6.0
*/
public function form() {
wp_enqueue_script( 'wc-credit-card-form' );
$html = '';
$fields = array();