Changeset 863869
- Timestamp:
- 02/24/2014 07:16:14 AM (12 years ago)
- Location:
- easy-digital-downloads-hide-button-prices/trunk
- Files:
-
- 2 added
- 2 edited
-
edd-hide-button-prices.php (modified) (3 diffs)
-
includes (added)
-
includes/class.s214-edd-activation.php (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-digital-downloads-hide-button-prices/trunk/edd-hide-button-prices.php
r862027 r863869 4 4 * Plugin URI: http://wordpress.org/plugins/easy-digital-downloads-hide-button-prices/ 5 5 * Description: Removes prices from purchase buttons on Easy Digital Downloads 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: Daniel J Griffiths 8 8 * Author URI: http://section214.com … … 154 154 function EDD_Hide_Button_Prices_load() { 155 155 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 } 158 159 159 // Display notice160 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(); 161 162 } else { 162 163 return EDD_Hide_Button_Prices::instance(); … … 164 165 } 165 166 add_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.0172 * @return void173 */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 3 3 Requires at least: 3.0.1 4 4 Tested up to: 3.7.1 5 Stable tag: 1.0. 25 Stable tag: 1.0.3 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 26 26 == Changelog == 27 27 28 = 1.0.3 = 29 * Rewrote activation function 30 28 31 = 1.0.2 = 29 32 * Fix spacing
Note: See TracChangeset
for help on using the changeset viewer.