Plugin Directory

Changeset 2380035


Ignore:
Timestamp:
09/12/2020 11:31:50 AM (5 years ago)
Author:
adwised
Message:

bug of initial config set fixed

Location:
adwised
Files:
20 added
2 edited

Legend:

Unmodified
Added
Removed
  • adwised/trunk/adwised.php

    r2375739 r2380035  
    44 * Plugin Name: adwised
    55 * Plugin URI: https://wordpress.org/plugins/adwised
    6  * Version: 2.3.2
     6 * Version: 2.3.3
    77 * Author: Adwised
    88 * Author URI: http://adwised.com
     
    173173                update_option('adwised_cpt_select', $_REQUEST['adwised_cpt_select']);
    174174                update_option('adwisedPushDeactivate', $_REQUEST['adwisedPushDeactivate']);
     175       
     176                $pushConfig = new stdClass();
     177                $pushConfig->client_id = get_option('adwised_client_id');
     178                $pushConfig->topic = get_option('adwised_topic');
     179                if (get_option("adwised_welcome_dismissed_key"))
     180                {
     181                    $currentPushConfig = get_option("adwisedPushConfig");
     182                    $pushConfig->ask_location = $currentPushConfig->ask_location === NULL ? true : $currentPushConfig->ask_location;
     183                    $pushConfig->double_permission_active = $currentPushConfig->double_permission_active === NULL ? false : $currentPushConfig->double_permission_active;
     184                } else {
     185                    $pushConfig->ask_location = true;
     186                    $pushConfig->double_permission_active = false;
     187                }
     188                update_option("adwisedPushConfig", $pushConfig);
     189
     190
    175191
    176192                // popup
  • adwised/trunk/readme.txt

    r2375739 r2380035  
    55Requires PHP: 5.2.4
    66Tested up to: 5.3
    7 Stable tag: 2.3.2
     7Stable tag: 2.3.3
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.txt
Note: See TracChangeset for help on using the changeset viewer.