Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- woocommerce-checkout-manager.php.orig 2014-10-07 22:16:54.000000000 +0100
- +++ woocommerce-checkout-manager.php 2014-11-09 09:06:56.481818400 +0000
- @@ -49,8 +49,7 @@
- add_action( 'admin_init', 'wccs_register_setting' );
- } else { // non-admin enqueues, actions, and filters
- // hook to get option values and dynamically render css to support the tab classes
- -wp_enqueue_script('jquery-ui-datepicker');
- -wp_enqueue_style( 'jquery-ui-style', (is_ssl()) ? 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css' : 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css' );
- +add_action('wp_enqueue_script', 'wccs_non_admin_scripts');
- }
- // action function for above hook
- function wccs_admin_menu() {
- @@ -60,6 +59,11 @@
- function wccs_register_setting() {
- register_setting( 'wccs_options', 'wccs_settings', 'wccs_options_validate' );
- }
- +function wccs_non_admin_scripts() {
- +wp_enqueue_script('jquery-ui-datepicker');
- +wp_enqueue_style( 'jquery-ui-style', (is_ssl()) ? 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css' : 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css' );
- +}
- +
- // fc_settings_page() displays the page content
- function wccs__options_page() {
- //must check that the user has the required capability
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement