Changeset 1371732
- Timestamp:
- 03/15/2016 05:37:05 PM (10 years ago)
- Location:
- gravity-forms-stripe/trunk
- Files:
-
- 3 edited
-
gravity-forms-stripe.php (modified) (3 diffs)
-
includes/class-gfp-stripe.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gravity-forms-stripe/trunk/gravity-forms-stripe.php
r1368950 r1371732 5 5 * Plugin URI: https://gravityplus.pro/gravity-forms-stripe 6 6 * Description: Use Stripe to process credit card payments on your site, easily and securely, with Gravity Forms 7 * Version: 1.9.2. 67 * Version: 1.9.2.7 8 8 * Author: gravity+ 9 9 * Author URI: https://gravityplus.pro … … 28 28 * 29 29 * @package GFP_Stripe 30 * @version 1.9.2. 630 * @version 1.9.2.7 31 31 * @author gravity+ <support@gravityplus.pro> 32 32 * @license GPL-2.0+ … … 34 34 * @copyright 2012-2016 gravity+ 35 35 * 36 * last updated: March 1 1, 201636 * last updated: March 15, 2016 37 37 */ 38 38 -
gravity-forms-stripe/trunk/includes/class-gfp-stripe.php
r1368950 r1371732 45 45 * @var string 46 46 */ 47 private static $version = '1.9.2. 6';47 private static $version = '1.9.2.7'; 48 48 49 49 /** … … 126 126 add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) ); 127 127 128 add_filter( 'upgrader_p re_install', array( $this, 'deactivate_plugin_before_upgrade' ), 10, 2 );128 add_filter( 'upgrader_post_install', array( $this, 'upgrader_post_install' ), 10, 2 ); 129 129 130 130 } … … 229 229 * If More Stripe is installed, deactivate it when we upgrade +Stripe 230 230 * 231 * Taken from Plugin_Upgrader::deactivate_plugin_before_upgrade 232 * 233 * @since 1.9.2.6 231 * @since 1.9.2.7 234 232 * 235 233 * @param $return 236 234 * @param $plugin 237 235 * 238 * @return WP_Error 239 */ 240 public function deactivate_plugin_before_upgrade( $return, $plugin ) { 241 242 if ( is_wp_error( $return ) ) { 243 244 return $return; 245 246 } 247 248 // When in cron (background updates) don't deactivate the plugin, as we require a browser to reactivate it 249 if ( defined( 'DOING_CRON' ) && DOING_CRON ) { 250 return $return; 251 } 252 253 $plugin = isset( $plugin[ 'plugin' ] ) ? $plugin[ 'plugin' ] : ''; 254 255 if ( empty( $plugin ) ) { 256 257 return new WP_Error( 'bad_request', __( 'Invalid Data provided.' ) ); 258 259 } 260 261 if ( 'gravity-forms-stripe/gravity-forms-stripe.php' == $plugin ) { 262 263 $more_stripe_options = array( 264 'gravityforms-stripe-more/more-stripe.php', 265 'gravityforms-stripe-more/gravityforms-stripe-more.php' 266 ); 267 268 foreach ( $more_stripe_options as $more_stripe ) { 269 270 if ( is_plugin_active( $more_stripe ) ) { 271 272 deactivate_plugins( $more_stripe ); 273 274 break; 236 * @return bool 237 */ 238 public function upgrader_post_install( $return, $plugin ) { 239 240 if ( $return ) { 241 242 $plugin = isset( $plugin[ 'plugin' ] ) ? $plugin[ 'plugin' ] : ''; 243 244 if ( 'gravity-forms-stripe/gravity-forms-stripe.php' == $plugin ) { 245 246 $more_stripe_options = array( 247 'gravityforms-stripe-more/more-stripe.php', 248 'gravityforms-stripe-more/gravityforms-stripe-more.php' 249 ); 250 251 foreach ( $more_stripe_options as $more_stripe ) { 252 253 if ( is_plugin_active( $more_stripe ) ) { 254 255 deactivate_plugins( $more_stripe ); 256 257 break; 258 259 } 260 261 } 262 263 delete_transient( 'gfp_stripe_currency' ); 275 264 276 265 } 277 266 278 267 } 279 280 delete_transient( 'gfp_stripe_currency' );281 282 }283 268 284 269 return $return; -
gravity-forms-stripe/trunk/readme.txt
r1368989 r1371732 5 5 Requires at least: 3.9 6 6 Tested up to: 4.5 7 Stable tag: 1.9.2. 67 Stable tag: 1.9.2.7 8 8 9 9 Build your own completely custom credit card payment forms with Stripe & Gravity Forms! … … 164 164 165 165 == Changelog == 166 167 = 1.9.2.7 (March 2016) = 168 169 **DO NOT UPDATE if you also use More Stripe and don't have version 1.9 or greater (email support for latest version).** 170 171 * **Miscellaneous** 172 173 * Fix issue with upgrader check preventing other plugins from installing 166 174 167 175 = 1.9.2.6 (March 2016) = … … 641 649 642 650 == Upgrade Notice == 651 = 1.9.2.7 = 652 DO NOT UPDATE if you are using More Stripe and don't have version 1.9 or greater (email support for latest version). Fix issue with upgrader check preventing other plugins from installing. 653 643 654 = 1.9.2.6 = 644 655 DO NOT UPDATE if you are using More Stripe and don't have version 1.9 or greater (email support for latest version). Fix fatal error when activated with an incompatible version of More Stripe. Also fix currency error on Forms->Settings page.
Note: See TracChangeset
for help on using the changeset viewer.