Plugin Directory

Changeset 3076196


Ignore:
Timestamp:
04/24/2024 06:43:53 AM (2 years ago)
Author:
writetextai
Message:

fallback handling for safe redirect on plugin activation for 6.5.2

Location:
writetext-ai
Files:
127 added
4 edited

Legend:

Unmodified
Added
Removed
  • writetext-ai/trunk/CHANGELOG.md

    r3073723 r3076196  
    99The format is based on [Keep a Changelog](http://keepachangelog.com/)
    1010and this project adheres to [Semantic Versioning](http://semver.org/).
     11
     12## [1.20.11] - 2024-04-24
     13
     14### Changed
     15
     16- Removed the redirect to the setup page after plugin activation for WordPress version 6.5.2 and above as per the new guideline of the new WP version. See details here: https://core.trac.wordpress.org/ticket/60992
    1117
    1218## [1.20.10] - 2024-04-19
  • writetext-ai/trunk/includes/class-wtai-api-services.php

    r3073723 r3076196  
    12741274                            if ( $error_alt_images ) {
    12751275                                $error_alt_images = array_unique( $error_alt_images );
    1276                                
     1276
    12771277                                ob_start();
    12781278                                ?>
  • writetext-ai/trunk/readme.txt

    r3073723 r3076196  
    44Tags: ai, gpt, woocommerce, copywriting, product description
    55Requires at least: 6.0
    6 Tested up to: 6.4.3
    7 Stable tag: 1.20.10
     6Tested up to: 6.5.2
     7Stable tag: 1.20.11
    88Requires PHP: 7.4
    99License: GPLv3 or later
     
    7272= Minimum Requirements =
    7373
    74 * WordPress 6.0 or later. Tested up to 6.4.3.
     74* WordPress 6.0 or later. Tested up to 6.5.2.
    7575* PHP version 7.4 or later.
    7676* WooCommerce 7.0.0 or later. Tested up to 8.7.0.
     
    151151
    152152== Changelog ==
     153
     154= 1.20.11 2024-04-24 =
     155
     156* Update - Removed the redirect to the setup page after plugin activation for WordPress version 6.5.2 and above as per the new guideline of the new WP version. See details here: https://core.trac.wordpress.org/ticket/60992
    153157
    154158= 1.20.10 2024-04-19 =
     
    541545== Upgrade Notice ==
    542546
    543 = 1.20.10 =
     547= 1.20.11 =
    544548
    545549Please upgrade, to ensure all plugin features works as expected.
  • writetext-ai/trunk/writetext-ai.php

    r3073723 r3076196  
    44 * Plugin URI: https://writetext.ai/woocommerce
    55 * Description: Let AI automatically generate product descriptions and other content from your product data.
    6  * Version: 1.20.10
     6 * Version: 1.20.11
    77 * Author:  1902 Software
    88 * Author URI: https://writetext.ai/
     
    5656
    5757    if ( ! defined( 'WTAI_VERSION' ) ) {
    58         define( 'WTAI_VERSION', '1.20.10' );
     58        define( 'WTAI_VERSION', '1.20.11' );
    5959    }
    6060
     
    141141     */
    142142    function wtai_activation_redirect( $plugin ) {
    143         if ( plugin_basename( __FILE__ ) === $plugin ) {
     143        $current_wp_version = wtai_get_wp_version();
     144
     145        // Redirect to the plugin setup page only if WP version is less than 6.5.2.
     146        if ( version_compare( $current_wp_version, '6.5.2', '<' ) && plugin_basename( __FILE__ ) === $plugin ) {
    144147            exit( esc_url( wp_safe_redirect( admin_url( '?page=write-text-ai' ) ) ) );
    145148        }
Note: See TracChangeset for help on using the changeset viewer.