Plugin Directory

Changeset 3253323


Ignore:
Timestamp:
03/10/2025 12:49:40 PM (13 months ago)
Author:
integromat
Message:

v1.5.9 Improve compatibility with other plugins

Location:
integromat-connector
Files:
34 added
2 edited

Legend:

Unmodified
Added
Removed
  • integromat-connector/trunk/index.php

    r2915666 r3253323  
    1 <?php defined( 'ABSPATH' ) || die( 'No direct access allowed' );
     1<?php defined('ABSPATH') || die('No direct access allowed');
    22
    33/**
    44 * @package Integromat_Connector
    5  * @version 1.5.8
     5 * @version 1.5.9
    66 */
    77
     
    1111Author: Celonis s.r.o.
    1212Author URI: https://www.make.com/en?utm_source=wordpress&utm_medium=partner&utm_campaign=wordpress-partner-make
    13 Version: 1.5.8
     13Version: 1.5.9
    1414*/
    1515
    16 define( 'IWC_FIELD_PREFIX', 'integromat_api_field_' );
    17 define( 'IWC_PLUGIN_NAME_SAFE', 'integromat-wordpress-connector' );
    18 define( 'IWC_MENUITEM_IDENTIFIER', 'integromat_custom_fields' );
     16define('IWC_FIELD_PREFIX', 'integromat_api_field_');
     17define('IWC_PLUGIN_NAME_SAFE', 'integromat-wordpress-connector');
     18define('IWC_MENUITEM_IDENTIFIER', 'integromat_custom_fields');
    1919
    2020require __DIR__ . '/class/class-user.php';
     
    3838add_action(
    3939    'admin_enqueue_scripts',
    40     function ( $hook ) {
    41 
    42         wp_enqueue_style( 'integromat_css', plugin_dir_url( __FILE__ ) . 'assets/iwc.css' );
    43         wp_enqueue_script( 'integromat_js', plugin_dir_url( __FILE__ ) . 'assets/iwc.js' );
    44 
    45         // Load WP native jQuery libraries.
    46         wp_enqueue_script( 'jquery-ui-tabs' );
     40    function ($hook) {
     41        // Only enqueue scripts for Make plugin
     42        if (!str_contains($hook, 'integromat')) {
     43            return;
     44        }
     45        wp_enqueue_style(
     46            'integromat_css',
     47            plugin_dir_url(__FILE__) . 'assets/iwc.css'
     48        );
     49        wp_enqueue_script(
     50            'integromat_js',
     51            plugin_dir_url(__FILE__) . 'assets/iwc.js',
     52            ['jquery-ui-tabs']
     53        );
    4754    }
    4855);
  • integromat-connector/trunk/readme.txt

    r3148796 r3253323  
    33Tags: rest, api, rest api, integromat, endpoint, endpoints, meta, data, meta_data, Make
    44Requires at least: 5.0
    5 Tested up to:  6.6
     5Tested up to:  6.7.2
    66Requires PHP: 7.2
    7 Stable tag: 1.5.8
     7Stable tag: 1.5.9
    88License: GPLv2 or later
    99
     
    4545
    4646== Changelog ==
     47= 1.5.9 =
     48* Improve compatibility with other plugins
     49
    4750= 1.5 =
    4851* Add custom taxonomies
Note: See TracChangeset for help on using the changeset viewer.