Plugin Directory

Changeset 3406609


Ignore:
Timestamp:
12/01/2025 09:39:17 AM (3 months ago)
Author:
rankpilotai
Message:

Version 1.0.21: new activation default and version sync

Location:
ai-snippet-seo-pro
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ai-snippet-seo-pro/tags/1.0.21/ai-snippet-seo-pro.php

    r3403707 r3406609  
    33Plugin Name: AI Snippet SEO Pro
    44Description: Generate AI SEO titles and meta descriptions in one click, with scoring, live preview and bulk tools for posts and taxonomies.
    5 Version: 1.0.20
     5Version: 1.0.21
    66Author:      RankPilotAI
    77Author URI:  https://rankpilotai.com
     
    2020
    2121/* Version constant — basit ve PHP5 uyumlu */
    22 if ( ! defined('AISSP_VERSION') ) { if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) define('AISSP_VERSION','1.0.20'); }
     22if ( ! defined('AISSP_VERSION') ) { if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) define('AISSP_VERSION','1.0.21'); }
    2323function aissp_plugin_activate() {
    2424    $option_key = 'aissp_settings';
    25     $opts = get_option($option_key,[]);
    26     if(!is_array($opts)) $opts=[];
    27     if(empty($opts['site_token'])){
    28         $opts['site_token'] = 'rp_'.wp_generate_password(20,false,false);
    29         update_option($option_key,$opts);
    30     }
     25    $opts = get_option($option_key, []);
     26    if ( ! is_array($opts) ) {
     27        $opts = [];
     28    }
     29
     30    if ( ! array_key_exists('site_token', $opts) ) {
     31        $opts['site_token'] = '';
     32    }
     33
     34    update_option($option_key, $opts);
    3135}
    3236register_activation_hook(__FILE__,'aissp_plugin_activate');
     
    5054
    5155    private function define_constants(){
    52         if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) define('AISSP_VERSION','1.0.9');
     56        if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) define('AISSP_VERSION','1.0.21');
    5357        define('AISSP_PATH', plugin_dir_path(__FILE__));
    5458        define('AISSP_URL', plugin_dir_url(__FILE__));
  • ai-snippet-seo-pro/tags/1.0.21/readme.txt

    r3403963 r3406609  
    55Tested up to: 6.8.3
    66Requires PHP: 7.4
    7 Stable tag: 1.0.20
     7Stable tag: 1.0.21
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    118118
    119119== Changelog ==
     120= 1.0.21 =
     121* New installs start with an empty Site Key field instead of a random generated key.
    120122
    121123= 1.0.20 =
  • ai-snippet-seo-pro/trunk/ai-snippet-seo-pro.php

    r3403707 r3406609  
    33Plugin Name: AI Snippet SEO Pro
    44Description: Generate AI SEO titles and meta descriptions in one click, with scoring, live preview and bulk tools for posts and taxonomies.
    5 Version: 1.0.20
     5Version: 1.0.21
    66Author:      RankPilotAI
    77Author URI:  https://rankpilotai.com
     
    2020
    2121/* Version constant — basit ve PHP5 uyumlu */
    22 if ( ! defined('AISSP_VERSION') ) { if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) define('AISSP_VERSION','1.0.20'); }
     22if ( ! defined('AISSP_VERSION') ) { if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) define('AISSP_VERSION','1.0.21'); }
    2323function aissp_plugin_activate() {
    2424    $option_key = 'aissp_settings';
    25     $opts = get_option($option_key,[]);
    26     if(!is_array($opts)) $opts=[];
    27     if(empty($opts['site_token'])){
    28         $opts['site_token'] = 'rp_'.wp_generate_password(20,false,false);
    29         update_option($option_key,$opts);
    30     }
     25    $opts = get_option($option_key, []);
     26    if ( ! is_array($opts) ) {
     27        $opts = [];
     28    }
     29
     30    if ( ! array_key_exists('site_token', $opts) ) {
     31        $opts['site_token'] = '';
     32    }
     33
     34    update_option($option_key, $opts);
    3135}
    3236register_activation_hook(__FILE__,'aissp_plugin_activate');
     
    5054
    5155    private function define_constants(){
    52         if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) define('AISSP_VERSION','1.0.9');
     56        if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) if ( ! defined('AISSP_VERSION') ) define('AISSP_VERSION','1.0.21');
    5357        define('AISSP_PATH', plugin_dir_path(__FILE__));
    5458        define('AISSP_URL', plugin_dir_url(__FILE__));
  • ai-snippet-seo-pro/trunk/readme.txt

    r3403963 r3406609  
    55Tested up to: 6.8.3
    66Requires PHP: 7.4
    7 Stable tag: 1.0.20
     7Stable tag: 1.0.21
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    118118
    119119== Changelog ==
     120= 1.0.21 =
     121* New installs start with an empty Site Key field instead of a random generated key.
    120122
    121123= 1.0.20 =
Note: See TracChangeset for help on using the changeset viewer.