Plugin Directory

Changeset 2984526


Ignore:
Timestamp:
10/26/2023 04:01:54 PM (2 years ago)
Author:
blockonomics
Message:

Fixed elementor theme issues

Location:
blockonomics-bitcoin-payments/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • blockonomics-bitcoin-payments/trunk/blockonomics-woocommerce.php

    r2977311 r2984526  
    44 * Plugin URI: https://github.com/blockonomics/woocommerce-plugin
    55 * Description: Accept Bitcoin Payments on your WooCommerce-powered website with Blockonomics
    6  * Version: 3.6.6
     6 * Version: 3.6.7
    77 * Author: Blockonomics
    88 * Author URI: https://www.blockonomics.co
     
    8080        // Where it tries to build SEO content from the shortcode and this could lead to checkout page not loading correctly.
    8181        $currentFilter = current_filter();
    82         if ($currentFilter != 'the_content') {
     82        if ($currentFilter == 'wp_head'){
    8383            return;
    8484        }
     
    551551        wp_register_script( 'qrious', plugins_url('js/vendors/qrious.min.js#deferload', __FILE__), array(), get_plugin_data( __FILE__ )['Version'] );
    552552        wp_register_script( 'copytoclipboard', plugins_url('js/vendors/copytoclipboard.js#deferload', __FILE__), array(), get_plugin_data( __FILE__ )['Version'] );
    553         wp_register_script( 'bnomics-checkout', plugins_url('js/checkout.js#deferload', __FILE__), array('reconnecting-websocket', 'qrious','copytoclipboard'), get_plugin_data( __FILE__ )['Version'], array('in_footer' => true  ) ); 
     553        wp_register_script( 'bnomics-checkout', plugins_url('js/checkout.js#deferload', __FILE__), array('reconnecting-websocket', 'qrious','copytoclipboard'), get_plugin_data( __FILE__ )['Version'] ); 
    554554    }
    555555
  • blockonomics-bitcoin-payments/trunk/php/Blockonomics.php

    r2977311 r2984526  
    437437        wp_enqueue_style( 'bnomics-style' );
    438438        if ($template_name === 'checkout') {
    439             add_action('wp_footer', function() use ($additional_script) {
    440                 printf('<script type="text/javascript">%s</script>', $additional_script);
    441             });
     439            wp_add_inline_script('bnomics-checkout', $additional_script, 'before');
    442440            wp_enqueue_script( 'bnomics-checkout' );
    443441        }
  • blockonomics-bitcoin-payments/trunk/readme.txt

    r2977311 r2984526  
    44Requires at least: 3.0.1
    55Tested up to: 6.3.1
    6 Stable tag: 3.6.6
     6Stable tag: 3.6.7
    77License: MIT
    88License URI: http://opensource.org/licenses/MIT
     
    8484== Changelog ==
    8585
     86= 3.6.7  =
     87* Fix shortcode execution with page builders
     88
    8689= 3.6.6  =
    8790* Fix plugin conflict where shortcode executed multiple times
Note: See TracChangeset for help on using the changeset viewer.