Plugin Directory

Changeset 2874509


Ignore:
Timestamp:
03/03/2023 09:45:17 PM (3 years ago)
Author:
setaryapp
Message:

Update to version 1.4.0 from GitHub

Location:
setary
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • setary/tags/1.4.0/README.md

    r2865566 r2874509  
    55Tested up to: 6.1.1
    66Requires PHP: 7.1
    7 Stable tag: 1.3.0
     7Stable tag: 1.4.0
    88License: MIT
    99License URI: https://opensource.org/licenses/MIT
     
    6262== Changelog ==
    6363
     64= v1.4.0 (2023-03-03) =
     65* [new] Enabled the "description" field
     66* [new] Enabled the "short_description" field
     67* [new] Introduced an "Enhance with AI" feature to improve descriptions
     68
    6469= v1.3.0 (2023-02-15) =
    6570* [update] Performance improvements so only visible columns are fetched. This can dramatically reduce the request size.
  • setary/tags/1.4.0/inc/class-products-with-variations.php

    r2865566 r2874509  
    9595     */
    9696    protected function get_product_data( $product, $context = 'view' ) {
     97        // We want the 'edit' versions of each field.
     98        $context = 'edit';
     99
    97100        $request = new \WP_REST_Request( '', '', [ 'context' => $context ] );
    98101
     
    131134            10 => 'featured',
    132135            11 => 'catalog_visibility',
    133             // 12 => 'description',
    134             // 13 => 'short_description',
     136            12 => 'description',
     137            13 => 'short_description',
    135138            14 => 'sku',
    136139            15 => 'price',
     
    194197        }
    195198
     199        $required_fields = [ 'id', 'parent_id', 'name' ];
     200
     201        // Merge the required fields with the requested fields.
     202        $requested_fields = array_merge( $required_fields, $requested_fields );
     203
     204        // Make it unique.
     205        $requested_fields = array_unique( $requested_fields );
     206
    196207        $cache_key             = 'setary_product_fields_' . md5( wp_json_encode( $requested_fields ) );
    197208        $cached_matched_fields = wp_cache_get( $cache_key );
  • setary/tags/1.4.0/setary.php

    r2865566 r2874509  
    1111 * Author URI:           https://setary.com/
    1212 *
    13  * Version:              1.3.0
     13 * Version:              1.4.0
    1414 * WC requires at least: 6.0.0
    15  * WC tested up to:      7.3.0
     15 * WC tested up to:      7.4.1
    1616 *
    1717 * @package              Setary
     
    2323define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) );
    2424define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) );
    25 define( 'SETARY_VERSION', '1.3.0' );
     25define( 'SETARY_VERSION', '1.4.0' );
    2626define( 'SETARY_SITE_URL', 'https://setary.com/' );
    2727define( 'SETARY_APP_URL', 'https://setary.com/app/' );
  • setary/trunk/README.md

    r2865566 r2874509  
    55Tested up to: 6.1.1
    66Requires PHP: 7.1
    7 Stable tag: 1.3.0
     7Stable tag: 1.4.0
    88License: MIT
    99License URI: https://opensource.org/licenses/MIT
     
    6262== Changelog ==
    6363
     64= v1.4.0 (2023-03-03) =
     65* [new] Enabled the "description" field
     66* [new] Enabled the "short_description" field
     67* [new] Introduced an "Enhance with AI" feature to improve descriptions
     68
    6469= v1.3.0 (2023-02-15) =
    6570* [update] Performance improvements so only visible columns are fetched. This can dramatically reduce the request size.
  • setary/trunk/inc/class-products-with-variations.php

    r2865566 r2874509  
    9595     */
    9696    protected function get_product_data( $product, $context = 'view' ) {
     97        // We want the 'edit' versions of each field.
     98        $context = 'edit';
     99
    97100        $request = new \WP_REST_Request( '', '', [ 'context' => $context ] );
    98101
     
    131134            10 => 'featured',
    132135            11 => 'catalog_visibility',
    133             // 12 => 'description',
    134             // 13 => 'short_description',
     136            12 => 'description',
     137            13 => 'short_description',
    135138            14 => 'sku',
    136139            15 => 'price',
     
    194197        }
    195198
     199        $required_fields = [ 'id', 'parent_id', 'name' ];
     200
     201        // Merge the required fields with the requested fields.
     202        $requested_fields = array_merge( $required_fields, $requested_fields );
     203
     204        // Make it unique.
     205        $requested_fields = array_unique( $requested_fields );
     206
    196207        $cache_key             = 'setary_product_fields_' . md5( wp_json_encode( $requested_fields ) );
    197208        $cached_matched_fields = wp_cache_get( $cache_key );
  • setary/trunk/setary.php

    r2865566 r2874509  
    1111 * Author URI:           https://setary.com/
    1212 *
    13  * Version:              1.3.0
     13 * Version:              1.4.0
    1414 * WC requires at least: 6.0.0
    15  * WC tested up to:      7.3.0
     15 * WC tested up to:      7.4.1
    1616 *
    1717 * @package              Setary
     
    2323define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) );
    2424define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) );
    25 define( 'SETARY_VERSION', '1.3.0' );
     25define( 'SETARY_VERSION', '1.4.0' );
    2626define( 'SETARY_SITE_URL', 'https://setary.com/' );
    2727define( 'SETARY_APP_URL', 'https://setary.com/app/' );
Note: See TracChangeset for help on using the changeset viewer.