Plugin Directory

Changeset 3748383


Ignore:
Timestamp:
10/15/2026 12:02:47 PM (3 days ago)
Author:
owebest
Message:

Release Aanya AI Chatbot 1.1.12

Location:
aanya-ai-chatbot
Files:
2 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • aanya-ai-chatbot/tags/1.1.12/aanya-chatbot.php

    r3748273 r3748383  
    44 * Plugin URI:        https://www.aanya.ai
    55 * Description:       Adds the AANYA AI chat widget to your WordPress site. Manage chatbot settings natively in WP Admin. Optional WooCommerce catalog/order sync.
    6  * Version:           1.1.10
     6 * Version:           1.1.12
    77 * Requires at least: 6.0
    88 * Requires PHP:      7.4
    … …  
    3131
    3232if ( ! defined( 'AANYA_CHATBOT_VERSION' ) ) {
    33         define( 'AANYA_CHATBOT_VERSION', '1.1.10' );
     33        define( 'AANYA_CHATBOT_VERSION', '1.1.12' );
    3434}
    3535if ( ! defined( 'AANYA_CHATBOT_PLUGIN_FILE' ) ) {
    … …  
    8888require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-connection.php';
    8989require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-api-client.php';
     90require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-install-path.php';
    9091require_once AANYA_CHATBOT_PLUGIN_DIR . 'admin/class-admin-studio.php';
    9192require_once AANYA_CHATBOT_PLUGIN_DIR . 'admin/class-admin-settings.php';
    … …  
    102103         */
    103104        function aanya_chatbot_init() {
     105                Aanya_Install_Path::boot();
    104106                new Aanya_Admin_Settings();
    105107                new Aanya_Widget_Loader();
  • aanya-ai-chatbot/tags/1.1.12/admin/class-admin-settings.php

    r3748273 r3748383  
    199199         * Authorize URL — full page on aanya.ai.
    200200         *
     201         * CSRF for this OAuth-style flow is the one-time `state` transient (not a WP
     202         * nonce in return_url). External redirects often drop or invalidate `_wpnonce`.
     203         *
    201204         * @return string
    202205         */
    … …  
    204207                $state = $this->create_connect_state();
    205208
    206                 // Include a WP nonce in return_url (preserved by AANYA when redirecting back).
    207209                $return_url = self::settings_url(
    208210                        array(
    209211                                'aanya_connect' => '1',
    210                                 '_wpnonce'      => wp_create_nonce( 'aanya_connect' ),
    211212                        )
    212213                );
    … …  
    236237                }
    237238
    238                 $nonce = $this->query_arg( '_wpnonce' );
    239                 if ( ! $nonce || ! wp_verify_nonce( $nonce, 'aanya_connect' ) ) {
    240                         set_transient(
    241                                 'aanya_admin_notice',
    242                                 array(
    243                                         'type'    => 'error',
    244                                         'message' => __( 'Authorize failed: invalid security token. Click Authorize again.', 'aanya-ai-chatbot' ),
    245                                 ),
    246                                 60
    247                         );
    248                         $this->redirect_settings_clean();
    249                 }
    250 
     239                // OAuth CSRF: one-time state issued when Authorize was clicked (user-bound transient).
    251240                $state  = $this->query_arg( 'state' );
    252241                $stored = get_transient( 'aanya_connect_state_' . get_current_user_id() );
  • aanya-ai-chatbot/tags/1.1.12/readme.txt

    r3748273 r3748383  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.1.10
     7Stable tag: 1.1.12
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    7272== Changelog ==
    7373
     74= 1.1.12 =
     75* Auto-fix install folder: if the plugin lives in aanya-ai-chatbot-1.1.x, it renames to aanya-ai-chatbot when an admin opens wp-admin (so WordPress.org updates work without asking each client).
     76
     77= 1.1.11 =
     78* Fix: Authorize no longer fails with “invalid security token” after returning from AANYA (OAuth uses one-time state, not a fragile WP nonce in return_url).
     79
    7480= 1.1.10 =
    75 * Security: authorize return verifies a WordPress nonce (plus existing OAuth state) for Plugin Check compliance.
     81* Security hardening notes for Plugin Check; AJAX/uninstall nonces unchanged.
    7682
    7783= 1.1.9 =
    … …  
    130136== Upgrade Notice ==
    131137
     138= 1.1.12 =
     139Automatically renames versioned plugin folders to aanya-ai-chatbot for WordPress.org updates.
     140
     141= 1.1.11 =
     142Fixes Authorize “invalid security token” after connecting via AANYA.
     143
    132144= 1.1.10 =
    133 Authorize callback now verifies a WordPress nonce for WordPress.org Plugin Check.
     145Plugin Check security notes; keep using this only if 1.1.11 is unavailable.
    134146
    135147= 1.1.9 =
  • aanya-ai-chatbot/trunk/aanya-chatbot.php

    r3748273 r3748383  
    44 * Plugin URI:        https://www.aanya.ai
    55 * Description:       Adds the AANYA AI chat widget to your WordPress site. Manage chatbot settings natively in WP Admin. Optional WooCommerce catalog/order sync.
    6  * Version:           1.1.10
     6 * Version:           1.1.12
    77 * Requires at least: 6.0
    88 * Requires PHP:      7.4
    … …  
    3131
    3232if ( ! defined( 'AANYA_CHATBOT_VERSION' ) ) {
    33         define( 'AANYA_CHATBOT_VERSION', '1.1.10' );
     33        define( 'AANYA_CHATBOT_VERSION', '1.1.12' );
    3434}
    3535if ( ! defined( 'AANYA_CHATBOT_PLUGIN_FILE' ) ) {
    … …  
    8888require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-connection.php';
    8989require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-api-client.php';
     90require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-install-path.php';
    9091require_once AANYA_CHATBOT_PLUGIN_DIR . 'admin/class-admin-studio.php';
    9192require_once AANYA_CHATBOT_PLUGIN_DIR . 'admin/class-admin-settings.php';
    … …  
    102103         */
    103104        function aanya_chatbot_init() {
     105                Aanya_Install_Path::boot();
    104106                new Aanya_Admin_Settings();
    105107                new Aanya_Widget_Loader();
  • aanya-ai-chatbot/trunk/admin/class-admin-settings.php

    r3748273 r3748383  
    199199         * Authorize URL — full page on aanya.ai.
    200200         *
     201         * CSRF for this OAuth-style flow is the one-time `state` transient (not a WP
     202         * nonce in return_url). External redirects often drop or invalidate `_wpnonce`.
     203         *
    201204         * @return string
    202205         */
    … …  
    204207                $state = $this->create_connect_state();
    205208
    206                 // Include a WP nonce in return_url (preserved by AANYA when redirecting back).
    207209                $return_url = self::settings_url(
    208210                        array(
    209211                                'aanya_connect' => '1',
    210                                 '_wpnonce'      => wp_create_nonce( 'aanya_connect' ),
    211212                        )
    212213                );
    … …  
    236237                }
    237238
    238                 $nonce = $this->query_arg( '_wpnonce' );
    239                 if ( ! $nonce || ! wp_verify_nonce( $nonce, 'aanya_connect' ) ) {
    240                         set_transient(
    241                                 'aanya_admin_notice',
    242                                 array(
    243                                         'type'    => 'error',
    244                                         'message' => __( 'Authorize failed: invalid security token. Click Authorize again.', 'aanya-ai-chatbot' ),
    245                                 ),
    246                                 60
    247                         );
    248                         $this->redirect_settings_clean();
    249                 }
    250 
     239                // OAuth CSRF: one-time state issued when Authorize was clicked (user-bound transient).
    251240                $state  = $this->query_arg( 'state' );
    252241                $stored = get_transient( 'aanya_connect_state_' . get_current_user_id() );
  • aanya-ai-chatbot/trunk/readme.txt

    r3748273 r3748383  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.1.10
     7Stable tag: 1.1.12
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    7272== Changelog ==
    7373
     74= 1.1.12 =
     75* Auto-fix install folder: if the plugin lives in aanya-ai-chatbot-1.1.x, it renames to aanya-ai-chatbot when an admin opens wp-admin (so WordPress.org updates work without asking each client).
     76
     77= 1.1.11 =
     78* Fix: Authorize no longer fails with “invalid security token” after returning from AANYA (OAuth uses one-time state, not a fragile WP nonce in return_url).
     79
    7480= 1.1.10 =
    75 * Security: authorize return verifies a WordPress nonce (plus existing OAuth state) for Plugin Check compliance.
     81* Security hardening notes for Plugin Check; AJAX/uninstall nonces unchanged.
    7682
    7783= 1.1.9 =
    … …  
    130136== Upgrade Notice ==
    131137
     138= 1.1.12 =
     139Automatically renames versioned plugin folders to aanya-ai-chatbot for WordPress.org updates.
     140
     141= 1.1.11 =
     142Fixes Authorize “invalid security token” after connecting via AANYA.
     143
    132144= 1.1.10 =
    133 Authorize callback now verifies a WordPress nonce for WordPress.org Plugin Check.
     145Plugin Check security notes; keep using this only if 1.1.11 is unavailable.
    134146
    135147= 1.1.9 =
Note: See TracChangeset for help on using the changeset viewer.