Plugin Directory

Changeset 2411821


Ignore:
Timestamp:
11/03/2020 12:37:35 PM (5 years ago)
Author:
ishanverma
Message:

redirect fix

Location:
authorizenet-payment-gateway-for-woocommerce
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • authorizenet-payment-gateway-for-woocommerce/tags/5.66/index.php

    r2411819 r2411821  
    473473}
    474474
    475 
    476 add_action( 'upgrader_process_complete', 'woosim_plugin_update',10, 2);
    477 
    478 add_action('admin_init', 'woosim__plugin_redirect');
    479 
    480 function woosim_plugin_update() {
    481  add_option('woosim__plugin_do_update_redirect', true);
    482 }
    483 
    484 function woosim__plugin_redirect() {
    485  if (get_option('woosim__plugin_do_update_redirect', false)) {
    486      delete_option('woosim__plugin_do_update_redirect');
    487      wp_redirect('admin.php?page=wc-settings&tab=checkout&section=authorize');
    488  }
    489 }
  • authorizenet-payment-gateway-for-woocommerce/trunk/index.php

    r2411819 r2411821  
    473473}
    474474
    475 
    476 add_action( 'upgrader_process_complete', 'woosim_plugin_update',10, 2);
    477 
    478 add_action('admin_init', 'woosim__plugin_redirect');
    479 
    480 function woosim_plugin_update() {
    481  add_option('woosim__plugin_do_update_redirect', true);
    482 }
    483 
    484 function woosim__plugin_redirect() {
    485  if (get_option('woosim__plugin_do_update_redirect', false)) {
    486      delete_option('woosim__plugin_do_update_redirect');
    487      wp_redirect('admin.php?page=wc-settings&tab=checkout&section=authorize');
    488  }
    489 }
Note: See TracChangeset for help on using the changeset viewer.