Plugin Directory

Changeset 3216130


Ignore:
Timestamp:
01/02/2025 09:55:57 PM (14 months ago)
Author:
michaelbourne
Message:

Version 1.4.8

Location:
wp-commerce7/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-commerce7/trunk/README.txt

    r3207744 r3216130  
    55Requires at least: 6.0
    66Tested up to: 6.7.1
    7 Stable tag: 1.4.7
     7Stable tag: 1.4.8
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    7272
    7373== Changelog ==
     74
     75= 1.4.8 - January 2, 2025 =
     76* Fix: Disable C7 JS in Oxygen's frontend builder to prevent conflicts.
    7477
    7578= 1.4.7 - December 13, 2024 =
  • wp-commerce7/trunk/commerce7-for-wordpress.php

    r3207744 r3216130  
    1212 * Plugin Name: Commerce7 for WordPress
    1313 * Description: Integrate Commerce7 functionality into your WordPress site easily
    14  * Version: 1.4.7
     14 * Version: 1.4.8
    1515 * Author: 5forests
    1616 * Author URI: https://5forests.com
     
    1818 * Requires at least: 6.0
    1919 * Tested up to: 6.7.1
    20  * Stable tag: 1.4.7
     20 * Stable tag: 1.4.8
    2121 * Requires PHP: 7.4
    2222 * License: GPL3
     
    2828 * Author: Michael Bourne
    2929 * -----
    30  * Last Modified: Sunday, December 8th 2024, 1:33:04 pm
     30 * Last Modified: Thursday, January 2nd 2025, 2:54:10 pm
    3131 * Modified By: Michael Bourne
    3232 * -----
    33  * Copyright (c) 2019-2024 URSA6
     33 * Copyright (c) 2019-2025 URSA6
    3434 *
    3535 * Commerce7 for WordPress is a plugin for WordPress that enables you to add Commerce7 ecommerce integration into your site.
     
    4848defined( 'C7WP_ROOT' ) || define( 'C7WP_ROOT', dirname( __FILE__ ) );
    4949defined( 'C7WP_URI' ) || define( 'C7WP_URI', plugin_dir_url( __FILE__ ) );
    50 defined( 'C7WP_VERSION' ) || define( 'C7WP_VERSION', '1.4.7' );
     50defined( 'C7WP_VERSION' ) || define( 'C7WP_VERSION', '1.4.8' );
    5151
    5252
  • wp-commerce7/trunk/includes/class-c7wp.php

    r3207744 r3216130  
    7676        add_action( 'elementor/editor/before_enqueue_scripts', array( $this, 'elementor_editor_enqueue_scripts' ) );
    7777        add_action( 'after_setup_theme', array( $this, 'load_c7_css' ), 9 );
     78        add_filter( 'body_class', array( $this, 'add_body_class' ) );
    7879
    7980        // for front end
     
    677678                break;
    678679        }
    679         wp_enqueue_script( 'c7js' );
     680        /**
     681         * Enqueues the 'c7js' script if the following conditions are met:
     682         * - The current request is not an admin request.
     683         * - The 'ct_builder' query parameter is not present in the URL.
     684         *
     685         * This ensures that the C7 script is only enqueued on the front-end and not when
     686         * using certain page builders like Oxygen.
     687         */
     688        if ( ! is_admin() && empty( $_GET['ct_builder'] ) ) {
     689            wp_enqueue_script( 'c7js' );
     690        }
    680691
    681692        /**
     
    10411052        return $post_states;
    10421053    }
     1054
     1055
     1056    /**
     1057     * Add body class for styles specificity and scope
     1058     */
     1059    public function add_body_class( $classes ) {
     1060        $classes[] = 'c7wp';
     1061        return $classes;
     1062    }
    10431063}
  • wp-commerce7/trunk/includes/gutenberg/load.php

    r3207744 r3216130  
    66 * Author: Michael Bourne
    77 * -----
    8  * Last Modified: Sunday, December 8th 2024, 1:29:52 pm
     8 * Last Modified: Tuesday, December 17th 2024, 3:46:08 pm
    99 * Modified By: Michael Bourne
    1010 * -----
     
    6161        $block_slug,
    6262        plugins_url( $dir . '/' . $element . '/' . $block_slug . '.js', __FILE__ ),
    63         [ 'wp-blocks', 'wp-element', 'wp-editor', 'wp-block-editor' ],
     63        [ 'wp-blocks', 'wp-element' ],
    6464        C7WP_VERSION,
    6565        1
Note: See TracChangeset for help on using the changeset viewer.