Plugin Directory

Changeset 3255181


Ignore:
Timestamp:
03/13/2025 07:58:49 AM (11 months ago)
Author:
sendsmaily
Message:

Release 1.12.1, see readme.txt for the changelog.

Location:
smaily-for-woocommerce
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • smaily-for-woocommerce/tags/1.12.1/inc/Base/Enqueue.php

    r2555168 r3255181  
    2020        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );
    2121        add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_front_scripts' ) );
    22         // Must have low priority to dequeue successfully.
    23         add_action( 'admin_enqueue_scripts', array( $this, 'dequeue_admin_styles' ), 100 );
    2422    }
    2523
     
    10199        $settings         = apply_filters( 'smaily_settings', $default_settings );
    102100        wp_add_inline_script(
    103             'smaily_for_woocommerce-inline',
     101            'smaily_for_woocommerce-admin_settings',
    104102            'var smaily_settings = ' . wp_json_encode( $settings ) . ';'
    105103        );
     
    122120        wp_enqueue_style( 'smaily_for_woocommerce-front_style' );
    123121    }
    124 
    125     /**
    126      * Dequeues all 3rd party styles on Smaily module settings page.
    127      * Note! This function can be removed once we decide to rework tabs to something other than jQuery UI
    128      *
    129      * @return void
    130      */
    131     public function dequeue_admin_styles() {
    132 
    133         $screen = get_current_screen();
    134         if ( ! isset( $screen->base ) || $screen->base !== 'toplevel_page_smaily-settings' ) {
    135             return;
    136         }
    137 
    138         $plugins_dir_url = content_url( 'plugins' );
    139         $wp_styles       = wp_styles();
    140         foreach ( $wp_styles->queue as $style_handle ) {
    141             if ( strpos( $style_handle, 'smaily_for_woocommerce' ) === 0 ) {
    142                 continue;
    143             }
    144             $style_src_path = $wp_styles->registered[ $style_handle ]->src;
    145 
    146             if ( strpos( $style_src_path, $plugins_dir_url ) === 0 ) {
    147                 wp_dequeue_style( $style_handle );
    148             }
    149         }
    150     }
    151 
    152122}
  • smaily-for-woocommerce/tags/1.12.1/readme.txt

    r3198193 r3255181  
    66Tested up to: 6.7
    77WC tested up to: 9.3.1
    8 Stable tag: 1.12.0
     8Stable tag: 1.12.1
    99License: GPLv3
    1010
     
    152152== Changelog ==
    153153
     154= 1.12.1 =
     155
     156- Stop dequeuing 3rd party styles in module settings page.
     157- Fixes RSS feed URL-s not updating when changing settings.
     158
    154159= 1.12.0 =
    155160
  • smaily-for-woocommerce/tags/1.12.1/smaily-for-woocommerce.php

    r3198193 r3255181  
    1414 * Plugin URI: https://github.com/sendsmaily/smaily-woocommerce-plugin
    1515 * Description: Smaily email marketing and automation extension plugin for WooCommerce. Set up easy sync for your contacts, add opt-in subscription form, import products directly to your email template and send abandoned cart reminder emails.
    16  * Version: 1.12.0
     16 * Version: 1.12.1
    1717 * License: GPL3
    1818 * Author: Smaily
     
    4949define( 'SMAILY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    5050define( 'SMAILY_PLUGIN_NAME', plugin_basename( __FILE__ ) );
    51 define( 'SMAILY_PLUGIN_VERSION', '1.12.0' );
     51define( 'SMAILY_PLUGIN_VERSION', '1.12.1' );
    5252
    5353// Required to use functions is_plugin_active and deactivate_plugins.
  • smaily-for-woocommerce/tags/1.12.1/vendor/composer/InstalledVersions.php

    r2896551 r3255181  
    3232     */
    3333    private static $installed;
     34
     35    /**
     36     * @var bool
     37     */
     38    private static $installedIsLocalDir;
    3439
    3540    /**
     
    310315        self::$installed = $data;
    311316        self::$installedByVendor = array();
     317
     318        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     319        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     320        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     321        // all installed packages for example
     322        self::$installedIsLocalDir = false;
    312323    }
    313324
     
    323334
    324335        $installed = array();
     336        $copiedLocalDir = false;
    325337
    326338        if (self::$canGetVendors) {
     339            $selfDir = strtr(__DIR__, '\\', '/');
    327340            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     341                $vendorDir = strtr($vendorDir, '\\', '/');
    328342                if (isset(self::$installedByVendor[$vendorDir])) {
    329343                    $installed[] = self::$installedByVendor[$vendorDir];
     
    331345                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    332346                    $required = require $vendorDir.'/composer/installed.php';
    333                     $installed[] = self::$installedByVendor[$vendorDir] = $required;
    334                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    335                         self::$installed = $installed[count($installed) - 1];
     347                    self::$installedByVendor[$vendorDir] = $required;
     348                    $installed[] = $required;
     349                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
     350                        self::$installed = $required;
     351                        self::$installedIsLocalDir = true;
    336352                    }
     353                }
     354                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     355                    $copiedLocalDir = true;
    337356                }
    338357            }
     
    351370        }
    352371
    353         if (self::$installed !== array()) {
     372        if (self::$installed !== array() && !$copiedLocalDir) {
    354373            $installed[] = self::$installed;
    355374        }
  • smaily-for-woocommerce/tags/1.12.1/vendor/composer/installed.php

    r3198193 r3255181  
    22    'root' => array(
    33        'name' => 'smaily/smaily_for_woocommerce',
    4         'pretty_version' => '1.12.0',
    5         'version' => '1.12.0.0',
    6         'reference' => 'd9713a3d2e5742a8954f2502998a97e222bc2135',
     4        'pretty_version' => '1.12.1',
     5        'version' => '1.12.1.0',
     6        'reference' => 'daec98fd5dfbff339eee28571485c2000eae1695',
    77        'type' => 'plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'smaily/smaily_for_woocommerce' => array(
    14             'pretty_version' => '1.12.0',
    15             'version' => '1.12.0.0',
    16             'reference' => 'd9713a3d2e5742a8954f2502998a97e222bc2135',
     14            'pretty_version' => '1.12.1',
     15            'version' => '1.12.1.0',
     16            'reference' => 'daec98fd5dfbff339eee28571485c2000eae1695',
    1717            'type' => 'plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • smaily-for-woocommerce/trunk/inc/Base/Enqueue.php

    r2555168 r3255181  
    2020        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );
    2121        add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_front_scripts' ) );
    22         // Must have low priority to dequeue successfully.
    23         add_action( 'admin_enqueue_scripts', array( $this, 'dequeue_admin_styles' ), 100 );
    2422    }
    2523
     
    10199        $settings         = apply_filters( 'smaily_settings', $default_settings );
    102100        wp_add_inline_script(
    103             'smaily_for_woocommerce-inline',
     101            'smaily_for_woocommerce-admin_settings',
    104102            'var smaily_settings = ' . wp_json_encode( $settings ) . ';'
    105103        );
     
    122120        wp_enqueue_style( 'smaily_for_woocommerce-front_style' );
    123121    }
    124 
    125     /**
    126      * Dequeues all 3rd party styles on Smaily module settings page.
    127      * Note! This function can be removed once we decide to rework tabs to something other than jQuery UI
    128      *
    129      * @return void
    130      */
    131     public function dequeue_admin_styles() {
    132 
    133         $screen = get_current_screen();
    134         if ( ! isset( $screen->base ) || $screen->base !== 'toplevel_page_smaily-settings' ) {
    135             return;
    136         }
    137 
    138         $plugins_dir_url = content_url( 'plugins' );
    139         $wp_styles       = wp_styles();
    140         foreach ( $wp_styles->queue as $style_handle ) {
    141             if ( strpos( $style_handle, 'smaily_for_woocommerce' ) === 0 ) {
    142                 continue;
    143             }
    144             $style_src_path = $wp_styles->registered[ $style_handle ]->src;
    145 
    146             if ( strpos( $style_src_path, $plugins_dir_url ) === 0 ) {
    147                 wp_dequeue_style( $style_handle );
    148             }
    149         }
    150     }
    151 
    152122}
  • smaily-for-woocommerce/trunk/readme.txt

    r3198193 r3255181  
    66Tested up to: 6.7
    77WC tested up to: 9.3.1
    8 Stable tag: 1.12.0
     8Stable tag: 1.12.1
    99License: GPLv3
    1010
     
    152152== Changelog ==
    153153
     154= 1.12.1 =
     155
     156- Stop dequeuing 3rd party styles in module settings page.
     157- Fixes RSS feed URL-s not updating when changing settings.
     158
    154159= 1.12.0 =
    155160
  • smaily-for-woocommerce/trunk/smaily-for-woocommerce.php

    r3198193 r3255181  
    1414 * Plugin URI: https://github.com/sendsmaily/smaily-woocommerce-plugin
    1515 * Description: Smaily email marketing and automation extension plugin for WooCommerce. Set up easy sync for your contacts, add opt-in subscription form, import products directly to your email template and send abandoned cart reminder emails.
    16  * Version: 1.12.0
     16 * Version: 1.12.1
    1717 * License: GPL3
    1818 * Author: Smaily
     
    4949define( 'SMAILY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    5050define( 'SMAILY_PLUGIN_NAME', plugin_basename( __FILE__ ) );
    51 define( 'SMAILY_PLUGIN_VERSION', '1.12.0' );
     51define( 'SMAILY_PLUGIN_VERSION', '1.12.1' );
    5252
    5353// Required to use functions is_plugin_active and deactivate_plugins.
  • smaily-for-woocommerce/trunk/vendor/composer/InstalledVersions.php

    r2896551 r3255181  
    3232     */
    3333    private static $installed;
     34
     35    /**
     36     * @var bool
     37     */
     38    private static $installedIsLocalDir;
    3439
    3540    /**
     
    310315        self::$installed = $data;
    311316        self::$installedByVendor = array();
     317
     318        // when using reload, we disable the duplicate protection to ensure that self::$installed data is
     319        // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
     320        // so we have to assume it does not, and that may result in duplicate data being returned when listing
     321        // all installed packages for example
     322        self::$installedIsLocalDir = false;
    312323    }
    313324
     
    323334
    324335        $installed = array();
     336        $copiedLocalDir = false;
    325337
    326338        if (self::$canGetVendors) {
     339            $selfDir = strtr(__DIR__, '\\', '/');
    327340            foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
     341                $vendorDir = strtr($vendorDir, '\\', '/');
    328342                if (isset(self::$installedByVendor[$vendorDir])) {
    329343                    $installed[] = self::$installedByVendor[$vendorDir];
     
    331345                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    332346                    $required = require $vendorDir.'/composer/installed.php';
    333                     $installed[] = self::$installedByVendor[$vendorDir] = $required;
    334                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    335                         self::$installed = $installed[count($installed) - 1];
     347                    self::$installedByVendor[$vendorDir] = $required;
     348                    $installed[] = $required;
     349                    if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
     350                        self::$installed = $required;
     351                        self::$installedIsLocalDir = true;
    336352                    }
     353                }
     354                if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
     355                    $copiedLocalDir = true;
    337356                }
    338357            }
     
    351370        }
    352371
    353         if (self::$installed !== array()) {
     372        if (self::$installed !== array() && !$copiedLocalDir) {
    354373            $installed[] = self::$installed;
    355374        }
  • smaily-for-woocommerce/trunk/vendor/composer/installed.php

    r3198193 r3255181  
    22    'root' => array(
    33        'name' => 'smaily/smaily_for_woocommerce',
    4         'pretty_version' => '1.12.0',
    5         'version' => '1.12.0.0',
    6         'reference' => 'd9713a3d2e5742a8954f2502998a97e222bc2135',
     4        'pretty_version' => '1.12.1',
     5        'version' => '1.12.1.0',
     6        'reference' => 'daec98fd5dfbff339eee28571485c2000eae1695',
    77        'type' => 'plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'smaily/smaily_for_woocommerce' => array(
    14             'pretty_version' => '1.12.0',
    15             'version' => '1.12.0.0',
    16             'reference' => 'd9713a3d2e5742a8954f2502998a97e222bc2135',
     14            'pretty_version' => '1.12.1',
     15            'version' => '1.12.1.0',
     16            'reference' => 'daec98fd5dfbff339eee28571485c2000eae1695',
    1717            'type' => 'plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.