From 33f2c5b4cddb2defbde185c72cde0d9ce253d90a Mon Sep 17 00:00:00 2001 From: toddlahman Date: Sun, 26 Jan 2014 19:37:03 -0800 Subject: [PATCH] Removed (document).ready from wc_print_js() jQuery(document).ready(function($) { is equivalent to calling jQuery(function($) {. http://api.jquery.com/ready/ --- includes/wc-core-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php index 10107e8149c..d50bb9f66ca 100644 --- a/includes/wc-core-functions.php +++ b/includes/wc-core-functions.php @@ -69,7 +69,7 @@ function wc_get_template_part( $slug, $name = '' ) { // Allow 3rd party plugin filter template file from their plugin $template = apply_filters( 'wc_get_template_part', $template, $slug, $name ); - + if ( $template ) load_template( $template, false ); } @@ -315,7 +315,7 @@ function wc_print_js() { if ( ! empty( $wc_queued_js ) ) { - echo "\n