Plugin Directory

Changeset 2482606


Ignore:
Timestamp:
02/27/2021 09:26:46 AM (5 years ago)
Author:
notifyevents
Message:

Update to v1.2.1

Location:
notify-events/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • notify-events/trunk/models/Core.php

    r2383243 r2482606  
    6363
    6464    /**
     65     * @param string $plugin
     66     * @return boolean
     67     */
     68    public static function is_plugin_active($plugin)
     69    {
     70        if (!function_exists('is_plugin_active')) {
     71            include_once ABSPATH . 'wp-admin/includes/plugin.php';
     72        }
     73
     74        return is_plugin_active( $plugin );
     75    }
     76
     77    /**
    6578     * @param array $links
    6679     * @param string $file
    6780     * @return array
    6881     */
    69     public function plugin_action_links($links, $file) {
     82    public function plugin_action_links($links, $file)
     83    {
    7084        if ($file == 'notify-events/notify-events.php') {
    7185            $settings_link = Html::a(__('Settings', WPNE), 'options-general.php?page=notify-events');
  • notify-events/trunk/models/Event.php

    r2432603 r2482606  
    155155        $args = array_merge_recursive($defaults, $args);
    156156
    157         file_put_contents('wc_search.json', json_encode($args, 320) . PHP_EOL . PHP_EOL, FILE_APPEND);
    158 
    159157        $events = parent::find($args);
    160158
  • notify-events/trunk/notify-events.php

    r2432603 r2482606  
    66Author: Notify.Events
    77Author URI: https://notify.events/
    8 Version: 1.2.0
     8Version: 1.2.1
    99License: GPL-2.0
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3636});
    3737
    38 add_action('user_register', function($user_id) {
    39     error_log('=== Register: ' . $user_id . ' ===');
    40 }, 10, 1);
    41 
    4238Core::instance();
    4339
     
    4541    WordPress::register();
    4642
    47     if (is_plugin_active('woocommerce/woocommerce.php')) {
     43    if (Core::is_plugin_active('woocommerce/woocommerce.php')) {
    4844        WooCommerce::register();
    4945    }
    5046
    51     if (is_plugin_active('contact-form-7/wp-contact-form-7.php')) {
     47    if (Core::is_plugin_active('contact-form-7/wp-contact-form-7.php')) {
    5248        ContactForm7::register();
    5349    }
    5450
    55     if (is_plugin_active('wpforms-lite/wpforms.php') || is_plugin_active('wpforms/wpforms.php')) {
     51    if (Core::is_plugin_active('wpforms-lite/wpforms.php') || Core::is_plugin_active('wpforms/wpforms.php')) {
    5652        WPForms::register();
    5753    }
    5854
    59     if (is_plugin_active('ninja-forms/ninja-forms.php')) {
     55    if (Core::is_plugin_active('ninja-forms/ninja-forms.php')) {
    6056        NinjaForms::register();
    6157    }
  • notify-events/trunk/readme.txt

    r2432603 r2482606  
    55Requires PHP: 5.6
    66Tested up to: 5.5
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8181== Changelog ==
    8282
     83= 1.2.1 =
     84Bugfixes.
     85
    8386= 1.2.0 =
    8487Adding support for WooCommerce, Contact Form 7, WPForms and Ninja Forms plugins.
Note: See TracChangeset for help on using the changeset viewer.