Plugin Directory

Changeset 2563021


Ignore:
Timestamp:
07/12/2021 05:15:50 PM (5 years ago)
Author:
organicthemes
Message:

Organic Builder Widgets: Updating to version 1.4.15

  • Added remove_theme_support( 'widgets-block-editor' ) function in favor of recommending Classic Widgets plugin
    • Ensures classic widgets are not replaced by block widgets during WP 5.8 update
Location:
organic-customizer-widgets
Files:
134 added
4 edited

Legend:

Unmodified
Added
Removed
  • organic-customizer-widgets/trunk/README.txt

    r2560714 r2563021  
    33Donate link: https://organicthemes.com
    44Tags: builder, customizer, widgets, slideshows, testimonials, portfolio, fontawesome, icons, pricing tables, page builder, full-width sections, custom widget areas, bundle, custom widgets, widget area, block
    5 Stable tag: 1.4.14.1
     5Stable tag: 1.4.15
    66Requires at least: 4.8
    7 Tested up to: 5.7
     7Tested up to: 5.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    154154== Changelog ==
    155155
     156= 1.4.15 =
     157* Added remove_theme_support( 'widgets-block-editor' ) function in favor of recommending Classic Widgets plugin
     158  * Ensures classic widgets are not replaced by block widgets during WP 5.8 update
     159
    156160= 1.4.14.1 =
    157161* Fixed misspelling of Classic Widgets extension
  • organic-customizer-widgets/trunk/includes/class-organic-widgets.php

    r2560637 r2563021  
    149149         * The file responsible for recommended plugins
    150150         */
    151         require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/tgm-plugin-activation.php';
     151        // require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/tgm-plugin-activation.php';
    152152
    153153        /**
     
    281281        $this->loader->add_action( 'wp_footer', $plugin_public, 'video_bg_script' );
    282282        $this->loader->add_filter( 'body_class', $plugin_public, 'add_body_class' );
     283        $this->loader->add_action( 'after_setup_theme', $plugin_public, 'theme_support' ); // Remove WP 5.8 block widget support. Restores classic widgets.
    283284
    284285    }
  • organic-customizer-widgets/trunk/organic-widgets.php

    r2560714 r2563021  
    1010 * Plugin URI:        https://organicthemes.com/organic-customizer-widgets
    1111 * Description:       Transform the core WordPress Customizer into a page builder. Display and arrange widgets on any page as beautiful content sections, such as featured content slideshows, testimonials, team members, portfolios, feature lists, pricing tables and more. Whoa, cool.
    12  * Version:           1.4.14.1
     12 * Version:           1.4.15
    1313 * Author:            Organic Themes
    1414 * Author URI:        https://organicthemes.com
     
    2020
    2121// Current Version (Keep in sync with Version # above).
    22 define( 'ORGANIC_WIDGETS_CURRENT_VERSION', '1.4.14.1' );
     22define( 'ORGANIC_WIDGETS_CURRENT_VERSION', '1.4.15' );
    2323
    2424// If this file is called directly, abort.
  • organic-customizer-widgets/trunk/public/class-organic-widgets-public.php

    r2560637 r2563021  
    6464        wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/organic-widgets-public.css', array(), $this->version, 'all' );
    6565
    66         $organic_widgets_settings = get_option('organic_widgets_settings');
     66        $organic_widgets_settings = get_option( 'organic_widgets_settings' );
    6767
    6868        if ( $organic_widgets_settings['additional_stylesheets'] ) {
    6969
    70             switch($organic_widgets_settings['additional_stylesheets']) {
     70            switch ( $organic_widgets_settings['additional_stylesheets'] ) {
    7171                case 2:
    72                     wp_enqueue_style( $this->plugin_name . '_additional_' .$organic_widgets_settings['additional_stylesheets'] , plugin_dir_url( __FILE__ ) . 'css/organic-widgets-public-additional-2.css', array(), $this->version, 'all' );
     72                    wp_enqueue_style( $this->plugin_name . '_additional_' . $organic_widgets_settings['additional_stylesheets'], plugin_dir_url( __FILE__ ) . 'css/organic-widgets-public-additional-2.css', array(), $this->version, 'all' );
    7373                    break;
    7474                case 3:
    75                     wp_enqueue_style( $this->plugin_name . '_additional_' .$organic_widgets_settings['additional_stylesheets'], plugin_dir_url( __FILE__ ) . 'css/organic-widgets-public-additional-3.css', array(), $this->version, 'all' );
     75                    wp_enqueue_style( $this->plugin_name . '_additional_' . $organic_widgets_settings['additional_stylesheets'], plugin_dir_url( __FILE__ ) . 'css/organic-widgets-public-additional-3.css', array(), $this->version, 'all' );
    7676                    break;
    7777            }
     
    8787    public function enqueue_scripts() {
    8888        wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/organic-widgets-public.js', array( 'jquery' ), $this->version, false );
     89    }
     90
     91    /**
     92     * Add or remove theme support functions.
     93     *
     94     * @since    1.0.0
     95     */
     96    public function theme_support() {
     97        remove_theme_support( 'widgets-block-editor' );
    8998    }
    9099
Note: See TracChangeset for help on using the changeset viewer.