Changeset 3255181
- Timestamp:
- 03/13/2025 07:58:49 AM (11 months ago)
- Location:
- smaily-for-woocommerce
- Files:
-
- 10 edited
- 1 copied
-
tags/1.12.1 (copied) (copied from smaily-for-woocommerce/trunk)
-
tags/1.12.1/inc/Base/Enqueue.php (modified) (3 diffs)
-
tags/1.12.1/readme.txt (modified) (2 diffs)
-
tags/1.12.1/smaily-for-woocommerce.php (modified) (2 diffs)
-
tags/1.12.1/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
tags/1.12.1/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/inc/Base/Enqueue.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/smaily-for-woocommerce.php (modified) (2 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smaily-for-woocommerce/tags/1.12.1/inc/Base/Enqueue.php
r2555168 r3255181 20 20 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) ); 21 21 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 );24 22 } 25 23 … … 101 99 $settings = apply_filters( 'smaily_settings', $default_settings ); 102 100 wp_add_inline_script( 103 'smaily_for_woocommerce- inline',101 'smaily_for_woocommerce-admin_settings', 104 102 'var smaily_settings = ' . wp_json_encode( $settings ) . ';' 105 103 ); … … 122 120 wp_enqueue_style( 'smaily_for_woocommerce-front_style' ); 123 121 } 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 UI128 *129 * @return void130 */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 152 122 } -
smaily-for-woocommerce/tags/1.12.1/readme.txt
r3198193 r3255181 6 6 Tested up to: 6.7 7 7 WC tested up to: 9.3.1 8 Stable tag: 1.12. 08 Stable tag: 1.12.1 9 9 License: GPLv3 10 10 … … 152 152 == Changelog == 153 153 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 154 159 = 1.12.0 = 155 160 -
smaily-for-woocommerce/tags/1.12.1/smaily-for-woocommerce.php
r3198193 r3255181 14 14 * Plugin URI: https://github.com/sendsmaily/smaily-woocommerce-plugin 15 15 * 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. 016 * Version: 1.12.1 17 17 * License: GPL3 18 18 * Author: Smaily … … 49 49 define( 'SMAILY_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 50 50 define( 'SMAILY_PLUGIN_NAME', plugin_basename( __FILE__ ) ); 51 define( 'SMAILY_PLUGIN_VERSION', '1.12. 0' );51 define( 'SMAILY_PLUGIN_VERSION', '1.12.1' ); 52 52 53 53 // Required to use functions is_plugin_active and deactivate_plugins. -
smaily-for-woocommerce/tags/1.12.1/vendor/composer/InstalledVersions.php
r2896551 r3255181 32 32 */ 33 33 private static $installed; 34 35 /** 36 * @var bool 37 */ 38 private static $installedIsLocalDir; 34 39 35 40 /** … … 310 315 self::$installed = $data; 311 316 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; 312 323 } 313 324 … … 323 334 324 335 $installed = array(); 336 $copiedLocalDir = false; 325 337 326 338 if (self::$canGetVendors) { 339 $selfDir = strtr(__DIR__, '\\', '/'); 327 340 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 $vendorDir = strtr($vendorDir, '\\', '/'); 328 342 if (isset(self::$installedByVendor[$vendorDir])) { 329 343 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 345 /** @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 */ 332 346 $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; 336 352 } 353 } 354 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 355 $copiedLocalDir = true; 337 356 } 338 357 } … … 351 370 } 352 371 353 if (self::$installed !== array() ) {372 if (self::$installed !== array() && !$copiedLocalDir) { 354 373 $installed[] = self::$installed; 355 374 } -
smaily-for-woocommerce/tags/1.12.1/vendor/composer/installed.php
r3198193 r3255181 2 2 'root' => array( 3 3 'name' => 'smaily/smaily_for_woocommerce', 4 'pretty_version' => '1.12. 0',5 'version' => '1.12. 0.0',6 'reference' => 'd 9713a3d2e5742a8954f2502998a97e222bc2135',4 'pretty_version' => '1.12.1', 5 'version' => '1.12.1.0', 6 'reference' => 'daec98fd5dfbff339eee28571485c2000eae1695', 7 7 'type' => 'plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'smaily/smaily_for_woocommerce' => array( 14 'pretty_version' => '1.12. 0',15 'version' => '1.12. 0.0',16 'reference' => 'd 9713a3d2e5742a8954f2502998a97e222bc2135',14 'pretty_version' => '1.12.1', 15 'version' => '1.12.1.0', 16 'reference' => 'daec98fd5dfbff339eee28571485c2000eae1695', 17 17 'type' => 'plugin', 18 18 'install_path' => __DIR__ . '/../../', -
smaily-for-woocommerce/trunk/inc/Base/Enqueue.php
r2555168 r3255181 20 20 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) ); 21 21 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 );24 22 } 25 23 … … 101 99 $settings = apply_filters( 'smaily_settings', $default_settings ); 102 100 wp_add_inline_script( 103 'smaily_for_woocommerce- inline',101 'smaily_for_woocommerce-admin_settings', 104 102 'var smaily_settings = ' . wp_json_encode( $settings ) . ';' 105 103 ); … … 122 120 wp_enqueue_style( 'smaily_for_woocommerce-front_style' ); 123 121 } 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 UI128 *129 * @return void130 */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 152 122 } -
smaily-for-woocommerce/trunk/readme.txt
r3198193 r3255181 6 6 Tested up to: 6.7 7 7 WC tested up to: 9.3.1 8 Stable tag: 1.12. 08 Stable tag: 1.12.1 9 9 License: GPLv3 10 10 … … 152 152 == Changelog == 153 153 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 154 159 = 1.12.0 = 155 160 -
smaily-for-woocommerce/trunk/smaily-for-woocommerce.php
r3198193 r3255181 14 14 * Plugin URI: https://github.com/sendsmaily/smaily-woocommerce-plugin 15 15 * 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. 016 * Version: 1.12.1 17 17 * License: GPL3 18 18 * Author: Smaily … … 49 49 define( 'SMAILY_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 50 50 define( 'SMAILY_PLUGIN_NAME', plugin_basename( __FILE__ ) ); 51 define( 'SMAILY_PLUGIN_VERSION', '1.12. 0' );51 define( 'SMAILY_PLUGIN_VERSION', '1.12.1' ); 52 52 53 53 // Required to use functions is_plugin_active and deactivate_plugins. -
smaily-for-woocommerce/trunk/vendor/composer/InstalledVersions.php
r2896551 r3255181 32 32 */ 33 33 private static $installed; 34 35 /** 36 * @var bool 37 */ 38 private static $installedIsLocalDir; 34 39 35 40 /** … … 310 315 self::$installed = $data; 311 316 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; 312 323 } 313 324 … … 323 334 324 335 $installed = array(); 336 $copiedLocalDir = false; 325 337 326 338 if (self::$canGetVendors) { 339 $selfDir = strtr(__DIR__, '\\', '/'); 327 340 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 $vendorDir = strtr($vendorDir, '\\', '/'); 328 342 if (isset(self::$installedByVendor[$vendorDir])) { 329 343 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 345 /** @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 */ 332 346 $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; 336 352 } 353 } 354 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 355 $copiedLocalDir = true; 337 356 } 338 357 } … … 351 370 } 352 371 353 if (self::$installed !== array() ) {372 if (self::$installed !== array() && !$copiedLocalDir) { 354 373 $installed[] = self::$installed; 355 374 } -
smaily-for-woocommerce/trunk/vendor/composer/installed.php
r3198193 r3255181 2 2 'root' => array( 3 3 'name' => 'smaily/smaily_for_woocommerce', 4 'pretty_version' => '1.12. 0',5 'version' => '1.12. 0.0',6 'reference' => 'd 9713a3d2e5742a8954f2502998a97e222bc2135',4 'pretty_version' => '1.12.1', 5 'version' => '1.12.1.0', 6 'reference' => 'daec98fd5dfbff339eee28571485c2000eae1695', 7 7 'type' => 'plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'smaily/smaily_for_woocommerce' => array( 14 'pretty_version' => '1.12. 0',15 'version' => '1.12. 0.0',16 'reference' => 'd 9713a3d2e5742a8954f2502998a97e222bc2135',14 'pretty_version' => '1.12.1', 15 'version' => '1.12.1.0', 16 'reference' => 'daec98fd5dfbff339eee28571485c2000eae1695', 17 17 'type' => 'plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.