Plugin Directory

Changeset 863869


Ignore:
Timestamp:
02/24/2014 07:16:14 AM (12 years ago)
Author:
ghost1227
Message:

Rewrote activation function

Location:
easy-digital-downloads-hide-button-prices/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • easy-digital-downloads-hide-button-prices/trunk/edd-hide-button-prices.php

    r862027 r863869  
    44 * Plugin URI:      http://wordpress.org/plugins/easy-digital-downloads-hide-button-prices/
    55 * Description:     Removes prices from purchase buttons on Easy Digital Downloads
    6  * Version:         1.0.2
     6 * Version:         1.0.3
    77 * Author:          Daniel J Griffiths
    88 * Author URI:      http://section214.com
     
    154154function EDD_Hide_Button_Prices_load() {
    155155    if( !class_exists( 'Easy_Digital_Downloads' ) ) {
    156         deactivate_plugins( __FILE__ );
    157         unset( $_GET['activate'] );
     156        if( !class_exists( 'S214_EDD_Activation' ) ) {
     157            require_once( 'includes/class.s214-edd-activation.php' );
     158        }
    158159
    159         // Display notice
    160         add_action( 'admin_notices', 'EDD_Hide_Button_Prices_missing_edd_notice' );
     160        $activation = new S214_EDD_Activation( plugin_dir_path( __FILE__ ), basename( __FILE__ ) );
     161        $activation = $activation->run();
    161162    } else {
    162163        return EDD_Hide_Button_Prices::instance();
     
    164165}
    165166add_action( 'plugins_loaded', 'EDD_Hide_Button_Prices_load' );
    166 
    167 
    168 /**
    169  * We need Easy Digital Downloads... if it isn't present, notify the user!
    170  *
    171  * @since       1.1.0
    172  * @return      void
    173  */
    174 function EDD_Hide_Button_Prices_missing_edd_notice() {
    175     echo '<div class="error"><p>' . __( 'Hide Button Prices requires Easy Digital Downloads! Please install it to continue!', 'edd-balanced-gateway' ) . '</p></div>';
    176 }
  • easy-digital-downloads-hide-button-prices/trunk/readme.txt

    r862027 r863869  
    33Requires at least: 3.0.1
    44Tested up to: 3.7.1
    5 Stable tag: 1.0.2
     5Stable tag: 1.0.3
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2626== Changelog ==
    2727
     28= 1.0.3 =
     29* Rewrote activation function
     30
    2831= 1.0.2 =
    2932* Fix spacing
Note: See TracChangeset for help on using the changeset viewer.