Plugin Directory

Changeset 3312296


Ignore:
Timestamp:
06/16/2025 05:04:06 AM (9 months ago)
Author:
stockpack
Message:

Add breakdance compatibility

Location:
stockpack/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stockpack/trunk/readme.txt

    r3257073 r3312296  
    33Tags: stock images, adobe stock, unsplash, getty, istock, pixabay, pexels
    44Requires at least: 4.6
    5 Tested up to: 6.7.2
    6 Stable tag: 3.4.6
     5Tested up to: 6.8.1
     6Stable tag: 3.4.7
    77License: GPL
    88License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    3939* Automatic caption fill in to be in line with licensing requirements
    4040* Set custom filename prior to the upload
    41 * Compatible with Gutenberg, [Elementor](https://elementor.com),[Bricks](https://bricksbuilder.io/), [Divi](https://www.elegantthemes.com/gallery/divi/), [Beaver Builder](https://www.wpbeaverbuilder.com), [Visual Composer](https://visualcomposer.com), [Avada Fusion Builder](https://theme-fusion.com/products/fusion-builder) [Oxygen Builder](https://oxygenbuilder.com) [WPBakery](https://wpbakery.com/) [Thrive Themes](https://thrivethemes.com/)
     41* Compatible with Gutenberg, [Elementor](https://elementor.com),[Bricks](https://bricksbuilder.io/), [Divi](https://www.elegantthemes.com/gallery/divi/), [Beaver Builder](https://www.wpbeaverbuilder.com), [Visual Composer](https://visualcomposer.com), [Avada Fusion Builder](https://theme-fusion.com/products/fusion-builder), [Oxygen Builder](https://oxygenbuilder.com), [WPBakery](https://wpbakery.com/), [Thrive Themes](https://thrivethemes.com/),
     42[Breakdance](https://breakdance.com/)
    4243* Compatible with [WPML](https://wpml.org)
    4344* Featured image caption
     
    133134
    134135== Changelog ==
     136
     137= 3.4.7 =
     138Added BreakDance compatibility
    135139
    136140= 3.4.6 =
  • stockpack/trunk/src/class-stockpackmedia.php

    r3257073 r3312296  
    6363        public function enqueue( $admin = true, $no_dialog = false ) {
    6464            global $pagenow;
     65
     66            if(stockpack_early_admin_enqueue()){
     67                wp_enqueue_media();
     68            }
     69
    6570            if(did_action('wp_enqueue_media') || (isset($_GET['page']) && $_GET['page'] === 'stockpack') || stockpack_frontend_load()) {
    6671                $this->enqueue_scripts($admin);
     
    100105                'wp-color-picker',
    101106                'jquery-ui-dialog'
    102             ), $this->version, true );
     107            ), $this->version, !stockpack_early_admin_enqueue() );
    103108
    104109            // make sure divi media library is added after
     
    217222        public function actions() {
    218223            add_action( 'admin_head', array( $this, 'templates' ) );
    219             add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin' ), 99 );
     224            add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin' ), stockpack_early_admin_enqueue() ? 1 : 99 );
    220225            add_action( 'elementor/editor/after_enqueue_styles', array( $this, 'enqueue_elementor_before' ) );
    221226            add_action( 'elementor/editor/footer', array( $this, 'templates' ) );
  • stockpack/trunk/stockpack.php

    r3257073 r3312296  
    66 * Author: Derikon Development
    77 * Author URI: https://derikon.com/
    8  * Version:3.4.6
     8 * Version:3.4.7
    99 * Text Domain: stockpack
    1010 * Domain Path: /languages
     
    155155    }
    156156
     157    function stockpack_early_admin_enqueue(){
     158        return isset($_GET['breakdance_wpuiforbuilder_media']);
     159    }
     160
    157161    function stockpack_cli_load() {
    158162        $load = false;
Note: See TracChangeset for help on using the changeset viewer.