Plugin Directory

Changeset 3645937


Ignore:
Timestamp:
08/13/2026 05:36:49 PM (2 months ago)
Author:
answermage
Message:

Release 1.0.1: WP 7.1 compat, fix API key placeholder, add icons and banners

Location:
answermage-ai-chat-widget
Files:
4 added
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • answermage-ai-chat-widget/tags/1.0.1/answermage.php

    r3522627 r3645937  
    44 * Plugin URI:        https://answermage.com/wordpress
    55 * Description:       Add an AI-powered chat widget to your WordPress site. Train it on your content and let it answer visitor questions 24/7.
    6  * Version:           1.0.0
     6 * Version:           1.0.1
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
    … …  
    1818}
    1919
    20 define( 'ANSWERMAGE_VERSION',       '1.0.0' );
     20define( 'ANSWERMAGE_VERSION',       '1.0.1' );
    2121define( 'ANSWERMAGE_OPTION_KEY',    'answermage_api_key' );
    2222define( 'ANSWERMAGE_WIDGET_URL',    'https://api.answermage.com/widget/answermage.min.js' );
    … …  
    2828add_action( 'admin_init', 'answermage_handle_connect_return' );
    2929function answermage_handle_connect_return() {
     30        // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- the nonce
     31        // travels in the `state` param and is verified below, before anything is stored.
    3032        if (
    31                 ! isset( $_GET['page'] ) || $_GET['page'] !== 'answermage' ||
    32                 ! isset( $_GET['answermage_api_key'], $_GET['state'] )
     33                ! isset( $_GET['page'], $_GET['answermage_api_key'], $_GET['state'] ) ||
     34                'answermage' !== sanitize_key( wp_unslash( $_GET['page'] ) )
    3335        ) {
    3436                return;
    … …  
    120122        $is_active = ! empty( $api_key );
    121123        $just_connected = isset( $_GET['answermage_connected'], $_GET['_answermage_nonce'] )
    122                 && '1' === $_GET['answermage_connected']
     124                && '1' === sanitize_key( wp_unslash( $_GET['answermage_connected'] ) )
    123125                && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_answermage_nonce'] ) ), 'answermage_connected' );
    124126        ?>
    … …  
    201203                                                                        value="<?php echo esc_attr( $api_key ); ?>"
    202204                                                                        class="regular-text"
    203                                                                         placeholder="am_xxxxxxxxxxxxxxxxxxxxxxxx"
     205                                                                        placeholder="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    204206                                                                        autocomplete="off"
    205207                                                                        spellcheck="false"
  • answermage-ai-chat-widget/tags/1.0.1/readme.txt

    r3522627 r3645937  
    33Tags:              chatbot, ai, chat, customer support, live chat
    44Requires at least: 5.8
    5 Tested up to:      6.9
    6 Stable tag:        1.0.0
     5Tested up to:      7.1
     6Stable tag:        1.0.1
    77Requires PHP:      7.4
    88License:           GPLv2 or later
    … …  
    3838== Installation ==
    3939
    40 1. Upload the `answermage` folder to `/wp-content/plugins/`, or install directly from the WordPress Plugin Directory
     401. Search for **AnswerMage** under **Plugins → Add New**, or upload the `answermage-ai-chat-widget` folder to `/wp-content/plugins/`
    41412. Activate the plugin through the **Plugins** menu in WordPress
    42423. Go to **Settings → AnswerMage**
    … …  
    101101== Changelog ==
    102102
     103= 1.0.1 =
     104* Corrected the API key field placeholder to match the actual key format.
     105* Hardened request handling on the settings screen.
     106* Confirmed compatibility with WordPress 7.1.
     107
    103108= 1.0.0 =
    104109* Initial release.
    … …  
    106111== Upgrade Notice ==
    107112
     113= 1.0.1 =
     114Compatibility with WordPress 7.1 and a corrected API key placeholder.
     115
    108116= 1.0.0 =
    109117Initial release.
  • answermage-ai-chat-widget/trunk/answermage.php

    r3522627 r3645937  
    44 * Plugin URI:        https://answermage.com/wordpress
    55 * Description:       Add an AI-powered chat widget to your WordPress site. Train it on your content and let it answer visitor questions 24/7.
    6  * Version:           1.0.0
     6 * Version:           1.0.1
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
    … …  
    1818}
    1919
    20 define( 'ANSWERMAGE_VERSION',       '1.0.0' );
     20define( 'ANSWERMAGE_VERSION',       '1.0.1' );
    2121define( 'ANSWERMAGE_OPTION_KEY',    'answermage_api_key' );
    2222define( 'ANSWERMAGE_WIDGET_URL',    'https://api.answermage.com/widget/answermage.min.js' );
    … …  
    2828add_action( 'admin_init', 'answermage_handle_connect_return' );
    2929function answermage_handle_connect_return() {
     30        // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- the nonce
     31        // travels in the `state` param and is verified below, before anything is stored.
    3032        if (
    31                 ! isset( $_GET['page'] ) || $_GET['page'] !== 'answermage' ||
    32                 ! isset( $_GET['answermage_api_key'], $_GET['state'] )
     33                ! isset( $_GET['page'], $_GET['answermage_api_key'], $_GET['state'] ) ||
     34                'answermage' !== sanitize_key( wp_unslash( $_GET['page'] ) )
    3335        ) {
    3436                return;
    … …  
    120122        $is_active = ! empty( $api_key );
    121123        $just_connected = isset( $_GET['answermage_connected'], $_GET['_answermage_nonce'] )
    122                 && '1' === $_GET['answermage_connected']
     124                && '1' === sanitize_key( wp_unslash( $_GET['answermage_connected'] ) )
    123125                && wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_answermage_nonce'] ) ), 'answermage_connected' );
    124126        ?>
    … …  
    201203                                                                        value="<?php echo esc_attr( $api_key ); ?>"
    202204                                                                        class="regular-text"
    203                                                                         placeholder="am_xxxxxxxxxxxxxxxxxxxxxxxx"
     205                                                                        placeholder="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    204206                                                                        autocomplete="off"
    205207                                                                        spellcheck="false"
  • answermage-ai-chat-widget/trunk/readme.txt

    r3522627 r3645937  
    33Tags:              chatbot, ai, chat, customer support, live chat
    44Requires at least: 5.8
    5 Tested up to:      6.9
    6 Stable tag:        1.0.0
     5Tested up to:      7.1
     6Stable tag:        1.0.1
    77Requires PHP:      7.4
    88License:           GPLv2 or later
    … …  
    3838== Installation ==
    3939
    40 1. Upload the `answermage` folder to `/wp-content/plugins/`, or install directly from the WordPress Plugin Directory
     401. Search for **AnswerMage** under **Plugins → Add New**, or upload the `answermage-ai-chat-widget` folder to `/wp-content/plugins/`
    41412. Activate the plugin through the **Plugins** menu in WordPress
    42423. Go to **Settings → AnswerMage**
    … …  
    101101== Changelog ==
    102102
     103= 1.0.1 =
     104* Corrected the API key field placeholder to match the actual key format.
     105* Hardened request handling on the settings screen.
     106* Confirmed compatibility with WordPress 7.1.
     107
    103108= 1.0.0 =
    104109* Initial release.
    … …  
    106111== Upgrade Notice ==
    107112
     113= 1.0.1 =
     114Compatibility with WordPress 7.1 and a corrected API key placeholder.
     115
    108116= 1.0.0 =
    109117Initial release.
Note: See TracChangeset for help on using the changeset viewer.