Bug on WooCommerce setup with fix
-
Hi,
I had an issue on WooCommerce first setup and I solved with thoose line of code at line 759 of wpGoogleMaps.php:function wpgmza_plugin_row_js(){ $current_page = get_current_screen(); /** * Setup page of WooCommerce * wp-admin/index.php?page=wc-setup */ if ( ! $current_page ) { return; } if ( $current_page->base == 'plugins' ) { wp_register_script( 'wpgmza_plugin_row_js', WPGMAPS_DIR.'js/wpgmaps_plugin_row.js', array( 'jquery-ui-core' ) ); wp_enqueue_script( 'wpgmza_plugin_row_js' ); wp_localize_script( 'wpgmza_plugin_row_js', 'wpgmza_sub_nonce', wp_create_nonce("wpgmza_subscribe") ); } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Bug on WooCommerce setup with fix’ is closed to new replies.