Plugin Directory

Changeset 1731559


Ignore:
Timestamp:
09/18/2017 11:23:25 AM (9 years ago)
Author:
madaritech
Message:

Release 1.2

Location:
synchro-mailchimp
Files:
45 added
2 edited

Legend:

Unmodified
Added
Removed
  • synchro-mailchimp/trunk/includes/class-synchro-mailchimp-activator.php

    r1724582 r1731559  
    44 * Fired during plugin activation
    55 *
    6  * @link       
     6 * @link
    77 * @since 1.0.0
    88 *
     
    3131     * @since 1.0.0
    3232     */
    33     public static function activate() 
     33    public static function activate()
    3434    {
    35         global $wp_roles;
    36         $all_roles = $wp_roles->roles;
     35        if (!get_option('synchro_mailchimp_options')) {
     36            global $wp_roles;
     37            $all_roles = $wp_roles->roles;
    3738
    38         $options = array();
     39            $options = array();
    3940       
    40         foreach ($all_roles as $role => $name) {
    41             $options[$role] = array();
     41            foreach ($all_roles as $role => $name) {
     42                $options[$role] = array();
     43            }
     44       
     45            update_option('synchro_mailchimp_options', serialize($options));
    4246        }
    43        
    44         update_option( 'synchro_mailchimp_options', serialize($options) );
    4547    }
    46 
    4748}
  • synchro-mailchimp/trunk/readme.txt

    r1724600 r1731559  
    66Requires at least: 4.8
    77Tested up to: 4.8.1
    8 Stable tag: 1.1
     8Stable tag: 1.2
    99License: GPLv2
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5757= 1.1 =
    5858* Bug in plugin name
     59
     60= 1.2 =
     61*Activator fixed: now doesn't overwrite settings if they was set by the user in previous activation
Note: See TracChangeset for help on using the changeset viewer.