Plugin Directory

Changeset 3406653


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

Release 1.0.3: Site Key activation behavior updated.

Location:
ai-alt-text-builder
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ai-alt-text-builder/tags/1.0.3/ai-alt-text-builder.php

    r3403718 r3406653  
    33Plugin Name: AI Alt Text Builder
    44Description: Generate SEO-friendly ALT text for Media Library images in one click, with scoring, bulk generation and language options.
    5 Version:     1.0.2
     5Version:     1.0.3
    66Author:      RankPilotAI
    77Author URI:  https://rankpilotai.com
     
    1616if ( ! defined( 'ABSPATH' ) ) exit;
    1717
    18 define( 'AATB_VERSION',       '1.0.2' );
     18define( 'AATB_VERSION',       '1.0.3' );
    1919define( 'AATB_PATH',          plugin_dir_path( __FILE__ ) );
    2020define( 'AATB_URL',           plugin_dir_url ( __FILE__ ) );
     
    3030register_activation_hook( __FILE__, function () {
    3131    $opt = get_option( AATB_SETTINGS_SLUG, [] );
    32     if ( empty( $opt['site_token'] ) ) {
    33         $opt['site_token'] = 'rp_' . wp_generate_password( 20, false, false );
    34     }
     32    if ( ! is_array( $opt ) ) {
     33        $opt = [];
     34    }
     35
     36    if ( ! array_key_exists( 'site_token', $opt ) ) {
     37        $opt['site_token'] = '';
     38    }
     39
    3540    if ( empty( $opt['lang_choice'] ) ) {
    3641        $opt['lang_choice'] = 'en';
     
    3944        $opt['model_choice'] = 'gpt-4o-mini';
    4045    }
     46
    4147    update_option( AATB_SETTINGS_SLUG, $opt );
    4248} );
  • ai-alt-text-builder/tags/1.0.3/readme.txt

    r3403718 r3406653  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7979== Changelog ==
    8080
     81= 1.0.3 =
     82* New installs start with an empty Site Key field instead of a random generated key.
     83
    8184= 1.0.2 =
    8285* Tweak: removed extra “View details” link on the Plugins screen and synced short description. No functional changes.
  • ai-alt-text-builder/trunk/ai-alt-text-builder.php

    r3403718 r3406653  
    33Plugin Name: AI Alt Text Builder
    44Description: Generate SEO-friendly ALT text for Media Library images in one click, with scoring, bulk generation and language options.
    5 Version:     1.0.2
     5Version:     1.0.3
    66Author:      RankPilotAI
    77Author URI:  https://rankpilotai.com
     
    1616if ( ! defined( 'ABSPATH' ) ) exit;
    1717
    18 define( 'AATB_VERSION',       '1.0.2' );
     18define( 'AATB_VERSION',       '1.0.3' );
    1919define( 'AATB_PATH',          plugin_dir_path( __FILE__ ) );
    2020define( 'AATB_URL',           plugin_dir_url ( __FILE__ ) );
     
    3030register_activation_hook( __FILE__, function () {
    3131    $opt = get_option( AATB_SETTINGS_SLUG, [] );
    32     if ( empty( $opt['site_token'] ) ) {
    33         $opt['site_token'] = 'rp_' . wp_generate_password( 20, false, false );
    34     }
     32    if ( ! is_array( $opt ) ) {
     33        $opt = [];
     34    }
     35
     36    if ( ! array_key_exists( 'site_token', $opt ) ) {
     37        $opt['site_token'] = '';
     38    }
     39
    3540    if ( empty( $opt['lang_choice'] ) ) {
    3641        $opt['lang_choice'] = 'en';
     
    3944        $opt['model_choice'] = 'gpt-4o-mini';
    4045    }
     46
    4147    update_option( AATB_SETTINGS_SLUG, $opt );
    4248} );
  • ai-alt-text-builder/trunk/readme.txt

    r3403718 r3406653  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7979== Changelog ==
    8080
     81= 1.0.3 =
     82* New installs start with an empty Site Key field instead of a random generated key.
     83
    8184= 1.0.2 =
    8285* Tweak: removed extra “View details” link on the Plugins screen and synced short description. No functional changes.
Note: See TracChangeset for help on using the changeset viewer.