Plugin Directory

Changeset 1764741


Ignore:
Timestamp:
11/13/2017 07:26:29 AM (8 years ago)
Author:
hotsource
Message:

Fixed broken plugin

Location:
trigger-happy
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trigger-happy/tags/1.0/readme.txt

    r1764650 r1764741  
    3838
    3939== Upgrade Notice ==
    40 Version 1.0
     40Version 1.0.1 is available
    4141
    4242== Frequently Asked Questions ==
     
    7272== Changelog ==
    7373
     74= 1.0.1 =
     75* Fixed loading issue in version 1
     76
    7477= 1.0 =
    7578* First release
  • trigger-happy/tags/1.0/src/class-triggerhappy.php

    r1764661 r1764741  
    9696     * Load nodes from Trigger Happy and third-party plugins
    9797     */
     98     
    9899    public function load_nodes() {
    99100        require_once( dirname( __FILE__ ) . '/nodes/core.php' );
    100         require_once( dirname( __FILE__ ) . '/nodes/woocommerce.php' );
    101         require_once( dirname( __FILE__ ) . '/nodes/forms.php' );
     101        if ( class_exists( 'WooCommerce' ) ) {
     102            require_once( dirname( __FILE__ ) . '/nodes/woocommerce.php' );
     103        }
     104        if ( function_exists( 'Ninja_Forms' ) ) {
     105            require_once( dirname( __FILE__ ) . '/nodes/forms.php' );
     106        }
    102107    }
    103108
  • trigger-happy/tags/1.0/trigger-happy.php

    r1764650 r1764741  
    44Plugin URI: http://hotsource.io/
    55Description: Connect your plugins and automate your workflow with Trigger Happy - a powerful flow-based visual scripting and automation tool
    6 Version: 1.0.0
     6Version: 1.0.1
    77Text Domain: trigger-happy
    88*/
  • trigger-happy/trunk/readme.txt

    r1764649 r1764741  
    3838
    3939== Upgrade Notice ==
    40 Version 1.0
     40Version 1.0.1 is available
    4141
    4242== Frequently Asked Questions ==
     
    7272== Changelog ==
    7373
     74= 1.0.1 =
     75* Fixed loading issue in version 1
     76
    7477= 1.0 =
    7578* First release
  • trigger-happy/trunk/src/class-triggerhappy.php

    r1764660 r1764741  
    9696     * Load nodes from Trigger Happy and third-party plugins
    9797     */
     98     
    9899    public function load_nodes() {
    99100        require_once( dirname( __FILE__ ) . '/nodes/core.php' );
    100         require_once( dirname( __FILE__ ) . '/nodes/woocommerce.php' );
    101         require_once( dirname( __FILE__ ) . '/nodes/forms.php' );
     101        if ( class_exists( 'WooCommerce' ) ) {
     102            require_once( dirname( __FILE__ ) . '/nodes/woocommerce.php' );
     103        }
     104        if ( function_exists( 'Ninja_Forms' ) ) {
     105            require_once( dirname( __FILE__ ) . '/nodes/forms.php' );
     106        }
    102107    }
    103108
  • trigger-happy/trunk/trigger-happy.php

    r1764649 r1764741  
    44Plugin URI: http://hotsource.io/
    55Description: Connect your plugins and automate your workflow with Trigger Happy - a powerful flow-based visual scripting and automation tool
    6 Version: 1.0.0
     6Version: 1.0.1
    77Text Domain: trigger-happy
    88*/
Note: See TracChangeset for help on using the changeset viewer.