Plugin Directory

Changeset 1733985


Ignore:
Timestamp:
09/21/2017 09:37:55 PM (9 years ago)
Author:
chatx
Message:

Improved some things on autoupdate.

Location:
chatx-ai
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chatx-ai/tags/0.1.1/admin/class-chatx-ai-admin.php

    r1733895 r1733985  
    399399
    400400    public function auto_update_plugin( $update, $item ) {
    401         $will_be_updated = in_array($item->slug, ['chatx-ai']);
    402         if($will_be_updated){
    403             $item->plugin = "chatx-ai/chatx-ai.php";
    404         }
    405        
    406         return $will_be_updated;
     401        // Array of plugin slugs to always auto-update
     402        $plugins = array (
     403            'chatx-ai',
     404        );
     405        if ( in_array( $item->slug, $plugins ) ) {
     406            return true; // Always update plugins in this array
     407        } else {
     408            return $update; // Else, use the normal API response to decide whether to update or not
     409        }
    407410    }
    408411}
  • chatx-ai/tags/0.1.1/readme.txt

    r1733978 r1733985  
    11=== Recover Abandoned Cart for WooCommerce - ChatX.ai ===
    22Contributors: chatx
    3 Tags: abandoned cart, recover abandoned cart, chatx, woocommerce, chatbot, facebook messenger, facebook, recover, cart recovery, abandon cart, increase sales, sales
     3Tags: abandoned cart, recover abandoned cart, woocommerce, chatbot, facebook messenger
    44Tested up to: 4.8.2
    55Stable tag: 0.1.1
     
    2929* Improved the autoupdate functionality.
    3030* Abandoned carts WooCommerce improved functionality.
     31* Increased the cart abandonment recovery rate.
    3132
    3233= 0.1.0 =
  • chatx-ai/trunk/admin/class-chatx-ai-admin.php

    r1733676 r1733985  
    399399
    400400    public function auto_update_plugin( $update, $item ) {
    401         $will_be_updated = in_array($item->slug, ['chatx-ai']);
    402         if($will_be_updated){
    403             $item->plugin = "chatx-ai/chatx-ai.php";
    404         }
    405        
    406         return $will_be_updated;
     401        // Array of plugin slugs to always auto-update
     402        $plugins = array (
     403            'chatx-ai',
     404        );
     405        if ( in_array( $item->slug, $plugins ) ) {
     406            return true; // Always update plugins in this array
     407        } else {
     408            return $update; // Else, use the normal API response to decide whether to update or not
     409        }
    407410    }
    408411}
  • chatx-ai/trunk/readme.txt

    r1733978 r1733985  
    11=== Recover Abandoned Cart for WooCommerce - ChatX.ai ===
    22Contributors: chatx
    3 Tags: abandoned cart, recover abandoned cart, chatx, woocommerce, chatbot, facebook messenger, facebook, recover, cart recovery, abandon cart, increase sales, sales
     3Tags: abandoned cart, recover abandoned cart, woocommerce, chatbot, facebook messenger
    44Tested up to: 4.8.2
    55Stable tag: 0.1.1
     
    2929* Improved the autoupdate functionality.
    3030* Abandoned carts WooCommerce improved functionality.
     31* Increased the cart abandonment recovery rate.
    3132
    3233= 0.1.0 =
Note: See TracChangeset for help on using the changeset viewer.