Plugin Directory

Changeset 3250124


Ignore:
Timestamp:
03/04/2025 08:03:54 AM (13 months ago)
Author:
Marcel-NL
Message:
  • v.1.0.2 Fix in prevent this plugin from activating if WooCommerce is not active
Location:
rtdashboards/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtdashboards/trunk/readme.txt

    r3250104 r3250124  
    4545== Changelog ==
    4646
     47* v.1.0.2 Fix in prevent this plugin from activating if WooCommerce is not active
    4748* v.1.0.1 Show an error message if you want to install this plugin, but Woocommerce is not installed
    4849* v.1.0 First release
  • rtdashboards/trunk/rtdashboards.php

    r3250104 r3250124  
    55 * Description: Lightweight plugin to send orders to rtdashboards.com
    66 * Author: Marcel van Doornen
    7  * Version: 1.0.1
     7 * Version: 1.0.2
    88 * Author URI: https://webbouwplus.nl
    99 * License: GPL2+
     
    190190    }
    191191
    192     deactivate_plugins(plugin_basename(__FILE__));
    193192    return; // Terminate and do not load further script.
    194193}
    195194
    196195function rtdashboards_error_notice() {
     196
     197    if ( is_plugin_active( plugin_basename( __FILE__ ) ) ) {
     198        deactivate_plugins(plugin_basename(__FILE__));
     199    }
     200
    197201    ?>
    198202    <div class="error">
    199         <p><?php _e('Your plugin has been deactivated because it requires WooCommerce to function.', 'rtdashboards'); ?></p>
     203        <p><?php _e('The RTDashboard plugin has been deactivated because it requires WooCommerce to function.', 'rtdashboards'); ?></p>
    200204    </div>
    201205    <?php
Note: See TracChangeset for help on using the changeset viewer.