Changeset 2874509
- Timestamp:
- 03/03/2023 09:45:17 PM (3 years ago)
- Location:
- setary
- Files:
-
- 6 edited
- 1 copied
-
tags/1.4.0 (copied) (copied from setary/trunk)
-
tags/1.4.0/README.md (modified) (2 diffs)
-
tags/1.4.0/inc/class-products-with-variations.php (modified) (3 diffs)
-
tags/1.4.0/setary.php (modified) (2 diffs)
-
trunk/README.md (modified) (2 diffs)
-
trunk/inc/class-products-with-variations.php (modified) (3 diffs)
-
trunk/setary.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
setary/tags/1.4.0/README.md
r2865566 r2874509 5 5 Tested up to: 6.1.1 6 6 Requires PHP: 7.1 7 Stable tag: 1. 3.07 Stable tag: 1.4.0 8 8 License: MIT 9 9 License URI: https://opensource.org/licenses/MIT … … 62 62 == Changelog == 63 63 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 64 69 = v1.3.0 (2023-02-15) = 65 70 * [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 95 95 */ 96 96 protected function get_product_data( $product, $context = 'view' ) { 97 // We want the 'edit' versions of each field. 98 $context = 'edit'; 99 97 100 $request = new \WP_REST_Request( '', '', [ 'context' => $context ] ); 98 101 … … 131 134 10 => 'featured', 132 135 11 => 'catalog_visibility', 133 //12 => 'description',134 //13 => 'short_description',136 12 => 'description', 137 13 => 'short_description', 135 138 14 => 'sku', 136 139 15 => 'price', … … 194 197 } 195 198 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 196 207 $cache_key = 'setary_product_fields_' . md5( wp_json_encode( $requested_fields ) ); 197 208 $cached_matched_fields = wp_cache_get( $cache_key ); -
setary/tags/1.4.0/setary.php
r2865566 r2874509 11 11 * Author URI: https://setary.com/ 12 12 * 13 * Version: 1. 3.013 * Version: 1.4.0 14 14 * WC requires at least: 6.0.0 15 * WC tested up to: 7. 3.015 * WC tested up to: 7.4.1 16 16 * 17 17 * @package Setary … … 23 23 define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) ); 24 24 define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) ); 25 define( 'SETARY_VERSION', '1. 3.0' );25 define( 'SETARY_VERSION', '1.4.0' ); 26 26 define( 'SETARY_SITE_URL', 'https://setary.com/' ); 27 27 define( 'SETARY_APP_URL', 'https://setary.com/app/' ); -
setary/trunk/README.md
r2865566 r2874509 5 5 Tested up to: 6.1.1 6 6 Requires PHP: 7.1 7 Stable tag: 1. 3.07 Stable tag: 1.4.0 8 8 License: MIT 9 9 License URI: https://opensource.org/licenses/MIT … … 62 62 == Changelog == 63 63 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 64 69 = v1.3.0 (2023-02-15) = 65 70 * [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 95 95 */ 96 96 protected function get_product_data( $product, $context = 'view' ) { 97 // We want the 'edit' versions of each field. 98 $context = 'edit'; 99 97 100 $request = new \WP_REST_Request( '', '', [ 'context' => $context ] ); 98 101 … … 131 134 10 => 'featured', 132 135 11 => 'catalog_visibility', 133 //12 => 'description',134 //13 => 'short_description',136 12 => 'description', 137 13 => 'short_description', 135 138 14 => 'sku', 136 139 15 => 'price', … … 194 197 } 195 198 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 196 207 $cache_key = 'setary_product_fields_' . md5( wp_json_encode( $requested_fields ) ); 197 208 $cached_matched_fields = wp_cache_get( $cache_key ); -
setary/trunk/setary.php
r2865566 r2874509 11 11 * Author URI: https://setary.com/ 12 12 * 13 * Version: 1. 3.013 * Version: 1.4.0 14 14 * WC requires at least: 6.0.0 15 * WC tested up to: 7. 3.015 * WC tested up to: 7.4.1 16 16 * 17 17 * @package Setary … … 23 23 define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) ); 24 24 define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) ); 25 define( 'SETARY_VERSION', '1. 3.0' );25 define( 'SETARY_VERSION', '1.4.0' ); 26 26 define( 'SETARY_SITE_URL', 'https://setary.com/' ); 27 27 define( 'SETARY_APP_URL', 'https://setary.com/app/' );
Note: See TracChangeset
for help on using the changeset viewer.