Plugin Directory

Changeset 2952748


Ignore:
Timestamp:
08/12/2023 08:08:36 PM (3 years ago)
Author:
setaryapp
Message:

Update to version 1.9.0 from GitHub

Location:
setary
Files:
2 added
12 edited
1 copied

Legend:

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

    r2951032 r2952748  
    55Tested up to: 6.2.2
    66Requires PHP: 7.1
    7 Stable tag: 1.8.0
     7Stable tag: 1.9.0
    88License: MIT
    99License URI: https://opensource.org/licenses/MIT
     
    9292
    9393= 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) =
    9498* [new] [WP Fusion Compatibility](https://setary.com/docs/how-to-bulk-edit-wp-fusion-woocommerce-product-tags/?utm_source=setary&utm_medium=changelog)
    9599* [new] `setary_get_store_info` filter
  • setary/tags/1.9.0/inc/class-compat-wp-fusion.php

    r2951032 r2952748  
    1515     * Meta keys.
    1616     */
    17     protected $wpf_keys = [];
     17    protected $meta_keys = [];
    1818
    1919    /**
     
    3838     */
    3939    protected function set_keys() {
    40         $this->wpf_keys = [
     40        $this->meta_keys = [
    4141            'wp_fusion_apply_tags'          => [
    4242                'title'      => __( 'WP Fusion Apply Tags' ),
     
    6969
    7070    /**
    71      * Get WP Fusion key name.
     71     * Get meta key name.
    7272     *
    7373     * @param string $key Potentially prefixed key.
     
    7676     * @return string
    7777     */
    78     protected function get_wpf_key( $key, $is_variation = false ) {
     78    protected function get_meta_key( $key, $is_variation = false ) {
    7979        // If variation, add _variation suffix, if it doesn't already exist.
    8080        if ( $is_variation && strpos( $key, '_variation' ) === false ) {
     
    9797
    9898        // Loop keys and add to info.
    99         foreach ( $this->wpf_keys as $value ) {
     99        foreach ( $this->meta_keys as $value ) {
    100100            $value['source'] = $available_tags;
    101101            $info['meta'][] = $value;
     
    122122    public function filter_response_by_context( $item, $data, $context ) {
    123123        // Loop keys and add to item.
    124         foreach ( $this->wpf_keys as $key => $value ) {
     124        foreach ( $this->meta_keys as $key => $value ) {
    125125            $item[$value['data']] = [];
    126126        }
     
    189189
    190190        // loop keys and check if present in request.
    191         foreach ( $this->wpf_keys as $key => $value ) {
     191        foreach ( $this->meta_keys as $key => $value ) {
    192192            if ( ! isset( $request[ $value['data'] ] ) ) {
    193193                continue;
    194194            }
    195195
    196             $wpf_key = $this->get_wpf_key( $key, $is_variation );
     196            $wpf_key = $this->get_meta_key( $key, $is_variation );
    197197
    198198            // Variation data is saved differently.
  • setary/tags/1.9.0/inc/class-mu.php

    r2940762 r2952748  
    1515     * @var string MU file version
    1616     */
    17     private static $version = '1.1.0';
     17    private static $version = '1.2.0';
    1818
    1919    /**
  • setary/tags/1.9.0/inc/class-settings.php

    r2940762 r2952748  
    5656
    5757        // Define plugins to exclude.
    58         $exclude_plugins = array( 'setary.php', 'woocommerce.php' );
     58        $exclude_plugins = array( '/setary.php', '/woocommerce.php' );
    5959
    6060        // Get all active plugins.
  • setary/tags/1.9.0/mu-setary-helper.php

    r2940762 r2952748  
    3535
    3636    $filtered_plugins     = array();
    37     $allowed_plugin_files = array( 'setary.php', 'woocommerce.php' );
     37    $allowed_plugin_files = array( '/setary.php', '/woocommerce.php' );
    3838
    3939    // Get plugins enabled from the Setary settings.
  • setary/tags/1.9.0/setary.php

    r2951032 r2952748  
    1111 * Author URI:           https://setary.com/
    1212 *
    13  * Version:              1.8.0
     13 * Version:              1.9.0
    1414 * WC requires at least: 6.0.0
    1515 * WC tested up to:      8.0.1
     
    2323define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) );
    2424define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) );
    25 define( 'SETARY_VERSION', '1.8.0' );
     25define( 'SETARY_VERSION', '1.9.0' );
    2626define( 'SETARY_SITE_URL', 'https://setary.com/' );
    2727define( 'SETARY_APP_URL', 'https://setary.com/app/' );
     
    5858    // Compatibility.
    5959    include_once __DIR__ . '/inc/class-compat-wp-fusion.php';
     60    include_once __DIR__ . '/inc/class-compat-lifterlms.php';
    6061}
  • setary/trunk/README.md

    r2951032 r2952748  
    55Tested up to: 6.2.2
    66Requires PHP: 7.1
    7 Stable tag: 1.8.0
     7Stable tag: 1.9.0
    88License: MIT
    99License URI: https://opensource.org/licenses/MIT
     
    9292
    9393= 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) =
    9498* [new] [WP Fusion Compatibility](https://setary.com/docs/how-to-bulk-edit-wp-fusion-woocommerce-product-tags/?utm_source=setary&utm_medium=changelog)
    9599* [new] `setary_get_store_info` filter
  • setary/trunk/inc/class-compat-wp-fusion.php

    r2951032 r2952748  
    1515     * Meta keys.
    1616     */
    17     protected $wpf_keys = [];
     17    protected $meta_keys = [];
    1818
    1919    /**
     
    3838     */
    3939    protected function set_keys() {
    40         $this->wpf_keys = [
     40        $this->meta_keys = [
    4141            'wp_fusion_apply_tags'          => [
    4242                'title'      => __( 'WP Fusion Apply Tags' ),
     
    6969
    7070    /**
    71      * Get WP Fusion key name.
     71     * Get meta key name.
    7272     *
    7373     * @param string $key Potentially prefixed key.
     
    7676     * @return string
    7777     */
    78     protected function get_wpf_key( $key, $is_variation = false ) {
     78    protected function get_meta_key( $key, $is_variation = false ) {
    7979        // If variation, add _variation suffix, if it doesn't already exist.
    8080        if ( $is_variation && strpos( $key, '_variation' ) === false ) {
     
    9797
    9898        // Loop keys and add to info.
    99         foreach ( $this->wpf_keys as $value ) {
     99        foreach ( $this->meta_keys as $value ) {
    100100            $value['source'] = $available_tags;
    101101            $info['meta'][] = $value;
     
    122122    public function filter_response_by_context( $item, $data, $context ) {
    123123        // Loop keys and add to item.
    124         foreach ( $this->wpf_keys as $key => $value ) {
     124        foreach ( $this->meta_keys as $key => $value ) {
    125125            $item[$value['data']] = [];
    126126        }
     
    189189
    190190        // loop keys and check if present in request.
    191         foreach ( $this->wpf_keys as $key => $value ) {
     191        foreach ( $this->meta_keys as $key => $value ) {
    192192            if ( ! isset( $request[ $value['data'] ] ) ) {
    193193                continue;
    194194            }
    195195
    196             $wpf_key = $this->get_wpf_key( $key, $is_variation );
     196            $wpf_key = $this->get_meta_key( $key, $is_variation );
    197197
    198198            // Variation data is saved differently.
  • setary/trunk/inc/class-mu.php

    r2940762 r2952748  
    1515     * @var string MU file version
    1616     */
    17     private static $version = '1.1.0';
     17    private static $version = '1.2.0';
    1818
    1919    /**
  • setary/trunk/inc/class-settings.php

    r2940762 r2952748  
    5656
    5757        // Define plugins to exclude.
    58         $exclude_plugins = array( 'setary.php', 'woocommerce.php' );
     58        $exclude_plugins = array( '/setary.php', '/woocommerce.php' );
    5959
    6060        // Get all active plugins.
  • setary/trunk/mu-setary-helper.php

    r2940762 r2952748  
    3535
    3636    $filtered_plugins     = array();
    37     $allowed_plugin_files = array( 'setary.php', 'woocommerce.php' );
     37    $allowed_plugin_files = array( '/setary.php', '/woocommerce.php' );
    3838
    3939    // Get plugins enabled from the Setary settings.
  • setary/trunk/setary.php

    r2951032 r2952748  
    1111 * Author URI:           https://setary.com/
    1212 *
    13  * Version:              1.8.0
     13 * Version:              1.9.0
    1414 * WC requires at least: 6.0.0
    1515 * WC tested up to:      8.0.1
     
    2323define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) );
    2424define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) );
    25 define( 'SETARY_VERSION', '1.8.0' );
     25define( 'SETARY_VERSION', '1.9.0' );
    2626define( 'SETARY_SITE_URL', 'https://setary.com/' );
    2727define( 'SETARY_APP_URL', 'https://setary.com/app/' );
     
    5858    // Compatibility.
    5959    include_once __DIR__ . '/inc/class-compat-wp-fusion.php';
     60    include_once __DIR__ . '/inc/class-compat-lifterlms.php';
    6061}
Note: See TracChangeset for help on using the changeset viewer.