Changeset 2952748
- Timestamp:
- 08/12/2023 08:08:36 PM (3 years ago)
- Location:
- setary
- Files:
-
- 2 added
- 12 edited
- 1 copied
-
tags/1.9.0 (copied) (copied from setary/trunk)
-
tags/1.9.0/README.md (modified) (2 diffs)
-
tags/1.9.0/inc/class-compat-lifterlms.php (added)
-
tags/1.9.0/inc/class-compat-wp-fusion.php (modified) (7 diffs)
-
tags/1.9.0/inc/class-mu.php (modified) (1 diff)
-
tags/1.9.0/inc/class-settings.php (modified) (1 diff)
-
tags/1.9.0/mu-setary-helper.php (modified) (1 diff)
-
tags/1.9.0/setary.php (modified) (3 diffs)
-
trunk/README.md (modified) (2 diffs)
-
trunk/inc/class-compat-lifterlms.php (added)
-
trunk/inc/class-compat-wp-fusion.php (modified) (7 diffs)
-
trunk/inc/class-mu.php (modified) (1 diff)
-
trunk/inc/class-settings.php (modified) (1 diff)
-
trunk/mu-setary-helper.php (modified) (1 diff)
-
trunk/setary.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
setary/tags/1.9.0/README.md
r2951032 r2952748 5 5 Tested up to: 6.2.2 6 6 Requires PHP: 7.1 7 Stable tag: 1. 8.07 Stable tag: 1.9.0 8 8 License: MIT 9 9 License URI: https://opensource.org/licenses/MIT … … 92 92 93 93 = v1.8.0 (2023-08-09) = 94 * [new] [LifterLMS Compatibility](https://setary.com/docs/how-to-bulk-edit-lifterlms-membership-settings/?utm_source=setary&utm_medium=changelog) 95 * [fix] Update excluded plugin paths to prevent conflicts 96 97 = v1.8.0 (2023-08-09) = 94 98 * [new] [WP Fusion Compatibility](https://setary.com/docs/how-to-bulk-edit-wp-fusion-woocommerce-product-tags/?utm_source=setary&utm_medium=changelog) 95 99 * [new] `setary_get_store_info` filter -
setary/tags/1.9.0/inc/class-compat-wp-fusion.php
r2951032 r2952748 15 15 * Meta keys. 16 16 */ 17 protected $ wpf_keys = [];17 protected $meta_keys = []; 18 18 19 19 /** … … 38 38 */ 39 39 protected function set_keys() { 40 $this-> wpf_keys = [40 $this->meta_keys = [ 41 41 'wp_fusion_apply_tags' => [ 42 42 'title' => __( 'WP Fusion Apply Tags' ), … … 69 69 70 70 /** 71 * Get WP Fusionkey name.71 * Get meta key name. 72 72 * 73 73 * @param string $key Potentially prefixed key. … … 76 76 * @return string 77 77 */ 78 protected function get_ wpf_key( $key, $is_variation = false ) {78 protected function get_meta_key( $key, $is_variation = false ) { 79 79 // If variation, add _variation suffix, if it doesn't already exist. 80 80 if ( $is_variation && strpos( $key, '_variation' ) === false ) { … … 97 97 98 98 // Loop keys and add to info. 99 foreach ( $this-> wpf_keys as $value ) {99 foreach ( $this->meta_keys as $value ) { 100 100 $value['source'] = $available_tags; 101 101 $info['meta'][] = $value; … … 122 122 public function filter_response_by_context( $item, $data, $context ) { 123 123 // Loop keys and add to item. 124 foreach ( $this-> wpf_keys as $key => $value ) {124 foreach ( $this->meta_keys as $key => $value ) { 125 125 $item[$value['data']] = []; 126 126 } … … 189 189 190 190 // loop keys and check if present in request. 191 foreach ( $this-> wpf_keys as $key => $value ) {191 foreach ( $this->meta_keys as $key => $value ) { 192 192 if ( ! isset( $request[ $value['data'] ] ) ) { 193 193 continue; 194 194 } 195 195 196 $wpf_key = $this->get_ wpf_key( $key, $is_variation );196 $wpf_key = $this->get_meta_key( $key, $is_variation ); 197 197 198 198 // Variation data is saved differently. -
setary/tags/1.9.0/inc/class-mu.php
r2940762 r2952748 15 15 * @var string MU file version 16 16 */ 17 private static $version = '1. 1.0';17 private static $version = '1.2.0'; 18 18 19 19 /** -
setary/tags/1.9.0/inc/class-settings.php
r2940762 r2952748 56 56 57 57 // Define plugins to exclude. 58 $exclude_plugins = array( ' setary.php', 'woocommerce.php' );58 $exclude_plugins = array( '/setary.php', '/woocommerce.php' ); 59 59 60 60 // Get all active plugins. -
setary/tags/1.9.0/mu-setary-helper.php
r2940762 r2952748 35 35 36 36 $filtered_plugins = array(); 37 $allowed_plugin_files = array( ' setary.php', 'woocommerce.php' );37 $allowed_plugin_files = array( '/setary.php', '/woocommerce.php' ); 38 38 39 39 // Get plugins enabled from the Setary settings. -
setary/tags/1.9.0/setary.php
r2951032 r2952748 11 11 * Author URI: https://setary.com/ 12 12 * 13 * Version: 1. 8.013 * Version: 1.9.0 14 14 * WC requires at least: 6.0.0 15 15 * WC tested up to: 8.0.1 … … 23 23 define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) ); 24 24 define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) ); 25 define( 'SETARY_VERSION', '1. 8.0' );25 define( 'SETARY_VERSION', '1.9.0' ); 26 26 define( 'SETARY_SITE_URL', 'https://setary.com/' ); 27 27 define( 'SETARY_APP_URL', 'https://setary.com/app/' ); … … 58 58 // Compatibility. 59 59 include_once __DIR__ . '/inc/class-compat-wp-fusion.php'; 60 include_once __DIR__ . '/inc/class-compat-lifterlms.php'; 60 61 } -
setary/trunk/README.md
r2951032 r2952748 5 5 Tested up to: 6.2.2 6 6 Requires PHP: 7.1 7 Stable tag: 1. 8.07 Stable tag: 1.9.0 8 8 License: MIT 9 9 License URI: https://opensource.org/licenses/MIT … … 92 92 93 93 = v1.8.0 (2023-08-09) = 94 * [new] [LifterLMS Compatibility](https://setary.com/docs/how-to-bulk-edit-lifterlms-membership-settings/?utm_source=setary&utm_medium=changelog) 95 * [fix] Update excluded plugin paths to prevent conflicts 96 97 = v1.8.0 (2023-08-09) = 94 98 * [new] [WP Fusion Compatibility](https://setary.com/docs/how-to-bulk-edit-wp-fusion-woocommerce-product-tags/?utm_source=setary&utm_medium=changelog) 95 99 * [new] `setary_get_store_info` filter -
setary/trunk/inc/class-compat-wp-fusion.php
r2951032 r2952748 15 15 * Meta keys. 16 16 */ 17 protected $ wpf_keys = [];17 protected $meta_keys = []; 18 18 19 19 /** … … 38 38 */ 39 39 protected function set_keys() { 40 $this-> wpf_keys = [40 $this->meta_keys = [ 41 41 'wp_fusion_apply_tags' => [ 42 42 'title' => __( 'WP Fusion Apply Tags' ), … … 69 69 70 70 /** 71 * Get WP Fusionkey name.71 * Get meta key name. 72 72 * 73 73 * @param string $key Potentially prefixed key. … … 76 76 * @return string 77 77 */ 78 protected function get_ wpf_key( $key, $is_variation = false ) {78 protected function get_meta_key( $key, $is_variation = false ) { 79 79 // If variation, add _variation suffix, if it doesn't already exist. 80 80 if ( $is_variation && strpos( $key, '_variation' ) === false ) { … … 97 97 98 98 // Loop keys and add to info. 99 foreach ( $this-> wpf_keys as $value ) {99 foreach ( $this->meta_keys as $value ) { 100 100 $value['source'] = $available_tags; 101 101 $info['meta'][] = $value; … … 122 122 public function filter_response_by_context( $item, $data, $context ) { 123 123 // Loop keys and add to item. 124 foreach ( $this-> wpf_keys as $key => $value ) {124 foreach ( $this->meta_keys as $key => $value ) { 125 125 $item[$value['data']] = []; 126 126 } … … 189 189 190 190 // loop keys and check if present in request. 191 foreach ( $this-> wpf_keys as $key => $value ) {191 foreach ( $this->meta_keys as $key => $value ) { 192 192 if ( ! isset( $request[ $value['data'] ] ) ) { 193 193 continue; 194 194 } 195 195 196 $wpf_key = $this->get_ wpf_key( $key, $is_variation );196 $wpf_key = $this->get_meta_key( $key, $is_variation ); 197 197 198 198 // Variation data is saved differently. -
setary/trunk/inc/class-mu.php
r2940762 r2952748 15 15 * @var string MU file version 16 16 */ 17 private static $version = '1. 1.0';17 private static $version = '1.2.0'; 18 18 19 19 /** -
setary/trunk/inc/class-settings.php
r2940762 r2952748 56 56 57 57 // Define plugins to exclude. 58 $exclude_plugins = array( ' setary.php', 'woocommerce.php' );58 $exclude_plugins = array( '/setary.php', '/woocommerce.php' ); 59 59 60 60 // Get all active plugins. -
setary/trunk/mu-setary-helper.php
r2940762 r2952748 35 35 36 36 $filtered_plugins = array(); 37 $allowed_plugin_files = array( ' setary.php', 'woocommerce.php' );37 $allowed_plugin_files = array( '/setary.php', '/woocommerce.php' ); 38 38 39 39 // Get plugins enabled from the Setary settings. -
setary/trunk/setary.php
r2951032 r2952748 11 11 * Author URI: https://setary.com/ 12 12 * 13 * Version: 1. 8.013 * Version: 1.9.0 14 14 * WC requires at least: 6.0.0 15 15 * WC tested up to: 8.0.1 … … 23 23 define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) ); 24 24 define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) ); 25 define( 'SETARY_VERSION', '1. 8.0' );25 define( 'SETARY_VERSION', '1.9.0' ); 26 26 define( 'SETARY_SITE_URL', 'https://setary.com/' ); 27 27 define( 'SETARY_APP_URL', 'https://setary.com/app/' ); … … 58 58 // Compatibility. 59 59 include_once __DIR__ . '/inc/class-compat-wp-fusion.php'; 60 include_once __DIR__ . '/inc/class-compat-lifterlms.php'; 60 61 }
Note: See TracChangeset
for help on using the changeset viewer.