Plugin Directory

Changeset 3421541


Ignore:
Timestamp:
12/17/2025 05:38:55 AM (3 months ago)
Author:
writetextai
Message:

hot fix on date on grid

Location:
writetext-ai
Files:
259 added
7 edited

Legend:

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

    r3421486 r3421541  
    99The format is based on [Keep a Changelog](http://keepachangelog.com/)
    1010and this project adheres to [Semantic Versioning](http://semver.org/).
     11
     12## [3.7.2] - 2025-12-17
     13
     14### Fixed
     15
     16- Resolved an issue where the "Last transferred to WooCommerce" column in the grid displayed the current date when the transfer was created from the single edit page.
    1117
    1218## [3.7.1] - 2025-12-17
  • writetext-ai/trunk/assets/js/admin-common.js

    r3421486 r3421541  
    1010);
    1111
    12 console.log('WriteText.ai - Version: [3.7.1] - 2025-12-17 - 1');
     12console.log('WriteText.ai - Version: [3.7.2] - 2025-12-17 - 1');
    1313
    1414jQuery( document ).ready( function( $ ){
  • writetext-ai/trunk/includes/class-wtai-product-category-list-table.php

    r3421486 r3421541  
    565565                if ( 'wtai_transfer_date' === $column_name ) {
    566566                    $item_value = isset( $item['wtai_transfer_date'] ) ? $item['wtai_transfer_date'] : '';
    567                 }
    568                 $item_value = $item[ $column_name ];
     567
     568                    // Check if the item value is not a timestamp, else convert it to a timestamp.
     569                    if ( $item_value && ! is_numeric( $item_value ) ) {
     570                        $item_value = strtotime( $item_value );
     571                    }
     572                }
    569573
    570574                if ( ! empty( $item_value ) ) {
  • writetext-ai/trunk/includes/class-wtai-product-list-table.php

    r3421486 r3421541  
    13131313                if ( 'wtai_transfer_date' === $column_name ) {
    13141314                    $item_value = isset( $item['wtai_transfer_date'] ) ? $item['wtai_transfer_date'] : '';
    1315                 }
    1316                 $item_value = $item[ $column_name ];
     1315
     1316                    // Check if the item value is not a timestamp, else convert it to a timestamp.
     1317                    if ( $item_value && ! is_numeric( $item_value ) ) {
     1318                        $item_value = strtotime( $item_value );
     1319                    }
     1320                }
    13171321
    13181322                if ( ! empty( $item_value ) ) {
  • writetext-ai/trunk/includes/functions.php

    r3421486 r3421541  
    23522352
    23532353    if ( 'transfer' === $type ) {
    2354         update_post_meta( $product_id, 'wtai_transfer_date', $last_activity_date );
     2354        $last_activity_date_timestamp = strtotime( $last_activity_date );
     2355        update_post_meta( $product_id, 'wtai_transfer_date', $last_activity_date_timestamp );
    23552356    }
    23562357}
     
    23732374
    23742375    if ( 'transfer' === $type ) {
    2375         update_term_meta( $category_id, 'wtai_transfer_date', $last_activity_date );
     2376        $last_activity_date_timestamp = strtotime( $last_activity_date );
     2377        update_term_meta( $category_id, 'wtai_transfer_date', $last_activity_date_timestamp );
    23762378    }
    23772379}
  • writetext-ai/trunk/readme.txt

    r3421486 r3421541  
    44Requires at least: 6.0
    55Tested up to: 6.9
    6 Stable tag: 3.7.1
     6Stable tag: 3.7.2
    77Requires PHP: 7.4
    88License: GPLv3 or later
     
    197197
    198198== Changelog ==
     199
     200= 3.7.2 2025-12-17 =
     201
     202* Fix - Resolved an issue where the "Last transferred to WooCommerce" column in the grid displayed the current date when the transfer was created from the single edit page.
    199203
    200204= 3.7.1 2025-12-17 =
     
    524528== Upgrade Notice ==
    525529
    526 = 3.7.1 =
     530= 3.7.2 =
    527531
    528532Please upgrade, to ensure all plugin features works as expected.
  • writetext-ai/trunk/writetext-ai.php

    r3421486 r3421541  
    44 * Plugin URI: https://writetext.ai/woocommerce
    55 * Description: Let AI automatically generate product descriptions and other content from your product data.
    6  * Version: 3.7.1
     6 * Version: 3.7.2
    77 * Author:  1902 Software
    88 * Author URI: https://writetext.ai/
     
    5252
    5353    if ( ! defined( 'WTAI_VERSION' ) ) {
    54         define( 'WTAI_VERSION', '3.7.1' );
     54        define( 'WTAI_VERSION', '3.7.2' );
    5555    }
    5656
Note: See TracChangeset for help on using the changeset viewer.