Plugin Directory

Changeset 3031673


Ignore:
Timestamp:
02/05/2024 01:50:24 PM (2 years ago)
Author:
polyres
Message:

Update plugin version and compatibility
Prevent error with rollback/updates

Location:
repeat-order-for-woocommerce/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • repeat-order-for-woocommerce/trunk/readme.txt

    r3020627 r3031673  
    11=== Repeat Order for WooCommerce  ===
    2 Contributors: polyres, fstaude, uschoene
     2Contributors: polyres, fstaude, uschoene, carfis
    33Tags: woocommerce, order again
    44Requires at least: 4.8
    5 Tested up to: 6.4.2
    6 Stable tag: 1.3.2
     5Tested up to: 6.4.3
     6Stable tag: 1.3.3
    77License: GPLv2
    88
     
    8686== Changelog ==
    8787
     88= 1.3.3 =
     89* [New] Support for WooCommerce 8.5.2
     90* [fix] prevent posible error with rollback/updates
     91
    8892= 1.3.2 =
    8993* [New] Support for WooCommerce 8.4.0
  • repeat-order-for-woocommerce/trunk/repeat-order-for-woocommerce.php

    r3020628 r3031673  
    44 * Plugin URI: https://poly-res.com/plugins/repeat-order-for-woocommerce/
    55 * Description: Add an "order again" button in Recent Orders list
    6  * Version: 1.3.2
     6 * Version: 1.3.3
    77 * Author: polyres
    88 * Author URI: https://poly-res.com/
     
    1515 * Requires WP:       4.8
    1616 * Requires PHP:      5.3
    17  * Tested up to: 6.4.2
     17 * Tested up to: 6.4.3
    1818 * WC requires at least: 3.4.0
    19  * WC tested up to: 8.4.0
     19 * WC tested up to: 8.5.2
    2020 *
    2121 * @link      https://poly-res.com
     
    3030}
    3131
    32 define( 'PRRO_VERSION', '1.3.2' );
     32define( 'PRRO_VERSION', '1.3.3' );
    3333
    3434
     
    7878    }
    7979
     80
    8081    /**
    8182     * Setup plugin environment to new version.
     
    9091        $our_plugin = plugin_basename( __FILE__ );
    9192        // If an update has taken place and the updated type is plugins and the plugins element exists.
    92         if ( 'update' === $options['action'] && 'plugin' === $options['type'] && in_array( $our_plugin, $options['plugins'], true ) ) {
     93        if ( 'update' === $options['action']
     94            && 'plugin' === $options['type']
     95            && isset( $options['plugins'] )
     96            && is_array( $options['plugins'] )
     97            && in_array( $our_plugin, $options['plugins'], true )
     98        ) {
    9399            // Retrieve the current version from the database.
    94100            $current_version = get_option( 'prro_version' );
Note: See TracChangeset for help on using the changeset viewer.