Plugin Directory

Changeset 3801379


Ignore:
Timestamp:
11/14/2026 03:46:57 AM (less than one hour ago)
Author:
thesnow
Message:

Release 1.0.3: the optional storefront button stays off until the shop turns it on; Shyaka no longer changes it

Location:
shyaka-for-woocommerce
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shyaka-for-woocommerce/tags/1.0.3/includes/class-shyaka-wc-admin.php

    r3786850 r3801379  
    284284                        Shyaka_WC_Client::forget();
    285285                }
    286                 // Shyaka keeps the storefront button setting too; its copy wins, so a change made elsewhere shows here.
     286                // The storefront button is the shop's own choice and is off until the shop turns it on here. Shyaka keeps a copy for its
     287                // records; if that copy differs, tell Shyaka. Shyaka never changes this shop's storefront (before 1.0.3 its copy won, so
     288                // a new store could get the button without choosing it).
    287289                if ( 'status' === $op && isset( $reply['button'] ) && is_bool( $reply['button'] ) && 'none' !== ( isset( $reply['state'] ) ? $reply['state'] : 'none' ) ) {
    288                         update_option( Shyaka_WC_Storefront::OPTION, $reply['button'] ? 'yes' : 'no' );
     290                        $mine = Shyaka_WC_Storefront::enabled();
     291                        if ( $mine !== $reply['button'] ) {
     292                                Shyaka_WC_Client::call( 'settings', array( 'button' => $mine ) );
     293                                $reply['button'] = $mine;
     294                        }
    289295                }
    290296                wp_send_json_success( $reply );
  • shyaka-for-woocommerce/tags/1.0.3/readme.txt

    r3800790 r3801379  
    66Requires PHP: 7.4
    77Requires Plugins: woocommerce
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    104104== Changelog ==
    105105
     106= 1.0.3 =
     107* The optional "Add to Shyaka closet" storefront button now stays off until you turn it on in Settings. Your choice is kept in your store and Shyaka no longer changes it.
     108
    106109= 1.0.2 =
    107110* New accent colour (orchid purple) on the Shyaka pages and the storefront dot.
    … …  
    114117
    115118== Upgrade Notice ==
     119
     120= 1.0.3 =
     121The storefront button stays off until you turn it on.
    116122
    117123= 1.0.2 =
  • shyaka-for-woocommerce/tags/1.0.3/shyaka-for-woocommerce.php

    r3800790 r3801379  
    44 * Plugin URI:           https://shyaka.art/woocommerce.html
    55 * Description:          Show your WooCommerce products in Shyaka, the iPhone wardrobe app. Shoppers save your pieces, add them to their closet and tap Buy to reach your own checkout.
    6  * Version:              1.0.2
     6 * Version:              1.0.3
    77 * Requires at least:    6.3
    88 * Requires PHP:         7.4
    … …  
    2121defined( 'ABSPATH' ) || exit;
    2222
    23 define( 'SHYAKA_WC_VERSION', '1.0.2' );
     23define( 'SHYAKA_WC_VERSION', '1.0.3' );
    2424define( 'SHYAKA_WC_FILE', __FILE__ );
    2525define( 'SHYAKA_WC_DIR', plugin_dir_path( __FILE__ ) );
  • shyaka-for-woocommerce/tags/1.0.3/uninstall.php

    r3800790 r3801379  
    1010
    1111if ( ! defined( 'SHYAKA_WC_VERSION' ) ) {
    12         define( 'SHYAKA_WC_VERSION', '1.0.2' );
     12        define( 'SHYAKA_WC_VERSION', '1.0.3' );
    1313}
    1414require_once __DIR__ . '/includes/class-shyaka-wc-client.php';
  • shyaka-for-woocommerce/trunk/includes/class-shyaka-wc-admin.php

    r3786850 r3801379  
    284284                        Shyaka_WC_Client::forget();
    285285                }
    286                 // Shyaka keeps the storefront button setting too; its copy wins, so a change made elsewhere shows here.
     286                // The storefront button is the shop's own choice and is off until the shop turns it on here. Shyaka keeps a copy for its
     287                // records; if that copy differs, tell Shyaka. Shyaka never changes this shop's storefront (before 1.0.3 its copy won, so
     288                // a new store could get the button without choosing it).
    287289                if ( 'status' === $op && isset( $reply['button'] ) && is_bool( $reply['button'] ) && 'none' !== ( isset( $reply['state'] ) ? $reply['state'] : 'none' ) ) {
    288                         update_option( Shyaka_WC_Storefront::OPTION, $reply['button'] ? 'yes' : 'no' );
     290                        $mine = Shyaka_WC_Storefront::enabled();
     291                        if ( $mine !== $reply['button'] ) {
     292                                Shyaka_WC_Client::call( 'settings', array( 'button' => $mine ) );
     293                                $reply['button'] = $mine;
     294                        }
    289295                }
    290296                wp_send_json_success( $reply );
  • shyaka-for-woocommerce/trunk/readme.txt

    r3800790 r3801379  
    66Requires PHP: 7.4
    77Requires Plugins: woocommerce
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    104104== Changelog ==
    105105
     106= 1.0.3 =
     107* The optional "Add to Shyaka closet" storefront button now stays off until you turn it on in Settings. Your choice is kept in your store and Shyaka no longer changes it.
     108
    106109= 1.0.2 =
    107110* New accent colour (orchid purple) on the Shyaka pages and the storefront dot.
    … …  
    114117
    115118== Upgrade Notice ==
     119
     120= 1.0.3 =
     121The storefront button stays off until you turn it on.
    116122
    117123= 1.0.2 =
  • shyaka-for-woocommerce/trunk/shyaka-for-woocommerce.php

    r3800790 r3801379  
    44 * Plugin URI:           https://shyaka.art/woocommerce.html
    55 * Description:          Show your WooCommerce products in Shyaka, the iPhone wardrobe app. Shoppers save your pieces, add them to their closet and tap Buy to reach your own checkout.
    6  * Version:              1.0.2
     6 * Version:              1.0.3
    77 * Requires at least:    6.3
    88 * Requires PHP:         7.4
    … …  
    2121defined( 'ABSPATH' ) || exit;
    2222
    23 define( 'SHYAKA_WC_VERSION', '1.0.2' );
     23define( 'SHYAKA_WC_VERSION', '1.0.3' );
    2424define( 'SHYAKA_WC_FILE', __FILE__ );
    2525define( 'SHYAKA_WC_DIR', plugin_dir_path( __FILE__ ) );
  • shyaka-for-woocommerce/trunk/uninstall.php

    r3800790 r3801379  
    1010
    1111if ( ! defined( 'SHYAKA_WC_VERSION' ) ) {
    12         define( 'SHYAKA_WC_VERSION', '1.0.2' );
     12        define( 'SHYAKA_WC_VERSION', '1.0.3' );
    1313}
    1414require_once __DIR__ . '/includes/class-shyaka-wc-client.php';
Note: See TracChangeset for help on using the changeset viewer.