Changeset 3414108
- Timestamp:
- 12/08/2025 10:34:41 AM (4 months ago)
- Location:
- discontinued-product-stock-status-woocommerce
- Files:
-
- 139 added
- 4 edited
-
tags/1.5.7 (added)
-
tags/1.5.7/assets (added)
-
tags/1.5.7/assets/css (added)
-
tags/1.5.7/assets/css/discontinued_products.css (added)
-
tags/1.5.7/assets/css/sweetalert2.min.css (added)
-
tags/1.5.7/assets/images (added)
-
tags/1.5.7/assets/images/bfcm-sale-notice-img.png (added)
-
tags/1.5.7/assets/images/moneyback-badge.png (added)
-
tags/1.5.7/assets/images/saffiretech-quick-links-logo.png (added)
-
tags/1.5.7/assets/images/saffiretech_logo.png (added)
-
tags/1.5.7/assets/images/tooltip.png (added)
-
tags/1.5.7/assets/js (added)
-
tags/1.5.7/assets/js/discontinued.js (added)
-
tags/1.5.7/assets/js/dpssw-function.js (added)
-
tags/1.5.7/assets/js/sweetalert2.all.min.js (added)
-
tags/1.5.7/discontinued-products-stock-status.php (added)
-
tags/1.5.7/includes (added)
-
tags/1.5.7/includes/dpssw-functions.php (added)
-
tags/1.5.7/includes/dpssw-product-data-tabs.php (added)
-
tags/1.5.7/languages (added)
-
tags/1.5.7/languages/discontinued-products-stock-status.POT (added)
-
tags/1.5.7/library (added)
-
tags/1.5.7/library/action-scheduler (added)
-
tags/1.5.7/library/action-scheduler/README.md (added)
-
tags/1.5.7/library/action-scheduler/action-scheduler.php (added)
-
tags/1.5.7/library/action-scheduler/changelog.txt (added)
-
tags/1.5.7/library/action-scheduler/classes (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_ActionClaim.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_ActionFactory.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_AdminView.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_Compatibility.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_DataController.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_DateTime.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_Exception.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_InvalidActionException.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_ListTable.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_LogEntry.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_NullLogEntry.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_OptionLock.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_QueueCleaner.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_QueueRunner.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_Versions.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_WPCommentCleaner.php (added)
-
tags/1.5.7/library/action-scheduler/classes/ActionScheduler_wcSystemStatus.php (added)
-
tags/1.5.7/library/action-scheduler/classes/WP_CLI (added)
-
tags/1.5.7/library/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php (added)
-
tags/1.5.7/library/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php (added)
-
tags/1.5.7/library/action-scheduler/classes/WP_CLI/Migration_Command.php (added)
-
tags/1.5.7/library/action-scheduler/classes/WP_CLI/ProgressBar.php (added)
-
tags/1.5.7/library/action-scheduler/classes/abstracts (added)
-
tags/1.5.7/library/action-scheduler/classes/abstracts/ActionScheduler.php (added)
-
tags/1.5.7/library/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php (added)
-
tags/1.5.7/library/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php (added)
-
tags/1.5.7/library/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php (added)
-
tags/1.5.7/library/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php (added)
-
tags/1.5.7/library/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schema.php (added)
-
tags/1.5.7/library/action-scheduler/classes/abstracts/ActionScheduler_Lock.php (added)
-
tags/1.5.7/library/action-scheduler/classes/abstracts/ActionScheduler_Logger.php (added)
-
tags/1.5.7/library/action-scheduler/classes/abstracts/ActionScheduler_Store.php (added)
-
tags/1.5.7/library/action-scheduler/classes/abstracts/ActionScheduler_TimezoneHelper.php (added)
-
tags/1.5.7/library/action-scheduler/classes/actions (added)
-
tags/1.5.7/library/action-scheduler/classes/actions/ActionScheduler_Action.php (added)
-
tags/1.5.7/library/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php (added)
-
tags/1.5.7/library/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php (added)
-
tags/1.5.7/library/action-scheduler/classes/actions/ActionScheduler_NullAction.php (added)
-
tags/1.5.7/library/action-scheduler/classes/data-stores (added)
-
tags/1.5.7/library/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php (added)
-
tags/1.5.7/library/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php (added)
-
tags/1.5.7/library/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php (added)
-
tags/1.5.7/library/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php (added)
-
tags/1.5.7/library/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php (added)
-
tags/1.5.7/library/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostStatusRegistrar.php (added)
-
tags/1.5.7/library/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostTypeRegistrar.php (added)
-
tags/1.5.7/library/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_TaxonomyRegistrar.php (added)
-
tags/1.5.7/library/action-scheduler/classes/migration (added)
-
tags/1.5.7/library/action-scheduler/classes/migration/ActionMigrator.php (added)
-
tags/1.5.7/library/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php (added)
-
tags/1.5.7/library/action-scheduler/classes/migration/BatchFetcher.php (added)
-
tags/1.5.7/library/action-scheduler/classes/migration/Config.php (added)
-
tags/1.5.7/library/action-scheduler/classes/migration/Controller.php (added)
-
tags/1.5.7/library/action-scheduler/classes/migration/DryRun_ActionMigrator.php (added)
-
tags/1.5.7/library/action-scheduler/classes/migration/DryRun_LogMigrator.php (added)
-
tags/1.5.7/library/action-scheduler/classes/migration/LogMigrator.php (added)
-
tags/1.5.7/library/action-scheduler/classes/migration/Runner.php (added)
-
tags/1.5.7/library/action-scheduler/classes/migration/Scheduler.php (added)
-
tags/1.5.7/library/action-scheduler/classes/schedules (added)
-
tags/1.5.7/library/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php (added)
-
tags/1.5.7/library/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php (added)
-
tags/1.5.7/library/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php (added)
-
tags/1.5.7/library/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php (added)
-
tags/1.5.7/library/action-scheduler/classes/schedules/ActionScheduler_Schedule.php (added)
-
tags/1.5.7/library/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php (added)
-
tags/1.5.7/library/action-scheduler/classes/schema (added)
-
tags/1.5.7/library/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php (added)
-
tags/1.5.7/library/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php (added)
-
tags/1.5.7/library/action-scheduler/deprecated (added)
-
tags/1.5.7/library/action-scheduler/deprecated/ActionScheduler_Abstract_QueueRunner_Deprecated.php (added)
-
tags/1.5.7/library/action-scheduler/deprecated/ActionScheduler_AdminView_Deprecated.php (added)
-
tags/1.5.7/library/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php (added)
-
tags/1.5.7/library/action-scheduler/deprecated/ActionScheduler_Store_Deprecated.php (added)
-
tags/1.5.7/library/action-scheduler/deprecated/functions.php (added)
-
tags/1.5.7/library/action-scheduler/functions.php (added)
-
tags/1.5.7/library/action-scheduler/lib (added)
-
tags/1.5.7/library/action-scheduler/lib/WP_Async_Request.php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/CronExpression.php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/CronExpression_FieldFactory.php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/CronExpression_FieldInterface(1).php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/CronExpression_FieldInterface.php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/CronExpression_HoursField.php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/CronExpression_MonthField.php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/CronExpression_YearField.php (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/LICENSE (added)
-
tags/1.5.7/library/action-scheduler/lib/cron-expression/README.md (added)
-
tags/1.5.7/library/action-scheduler/license.txt (added)
-
tags/1.5.7/library/action-scheduler/node_modules (added)
-
tags/1.5.7/library/action-scheduler/node_modules/.package-lock.json (added)
-
tags/1.5.7/library/action-scheduler/readme.txt (added)
-
tags/1.5.7/library/action-scheduler/vendor (added)
-
tags/1.5.7/library/action-scheduler/vendor/autoload.php (added)
-
tags/1.5.7/library/action-scheduler/vendor/composer (added)
-
tags/1.5.7/library/action-scheduler/vendor/composer/ClassLoader.php (added)
-
tags/1.5.7/library/action-scheduler/vendor/composer/InstalledVersions.php (added)
-
tags/1.5.7/library/action-scheduler/vendor/composer/LICENSE (added)
-
tags/1.5.7/library/action-scheduler/vendor/composer/autoload_classmap.php (added)
-
tags/1.5.7/library/action-scheduler/vendor/composer/autoload_namespaces.php (added)
-
tags/1.5.7/library/action-scheduler/vendor/composer/autoload_psr4.php (added)
-
tags/1.5.7/library/action-scheduler/vendor/composer/autoload_real.php (added)
-
tags/1.5.7/library/action-scheduler/vendor/composer/autoload_static.php (added)
-
tags/1.5.7/library/action-scheduler/vendor/composer/installed.json (added)
-
tags/1.5.7/library/action-scheduler/vendor/composer/installed.php (added)
-
tags/1.5.7/readme.txt (added)
-
tags/1.5.7/wpml-config.xml (added)
-
trunk/discontinued-products-stock-status.php (modified) (2 diffs)
-
trunk/includes/dpssw-functions.php (modified) (4 diffs)
-
trunk/languages/discontinued-products-stock-status.pot (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
discontinued-product-stock-status-woocommerce/trunk/discontinued-products-stock-status.php
r3410883 r3414108 7 7 * Text Domain: discontinued-products-stock-status 8 8 * Domain Path: /languages 9 * Stable Tag : 1.5. 69 * Stable Tag : 1.5.7 10 10 * Requires at least: 5.0 11 11 * Tested up to: 6.8.1 … … 14 14 * License: GPLv3 15 15 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 16 * Version: 1.5. 616 * Version: 1.5.7 17 17 */ 18 18 -
discontinued-product-stock-status-woocommerce/trunk/includes/dpssw-functions.php
r3410883 r3414108 90 90 filter: grayscale(1) !important; 91 91 } 92 /* 93 li.sft-discontinued img.attachment-woocommerce_thumbnail{ 94 filter: grayscale(1) !important; 95 }*/ 92 96 </style> 93 97 <?php … … 117 121 filter: grayscale(1) !important; 118 122 } 123 /* 124 li.sft-discontinued img.attachment-woocommerce_thumbnail{ 125 filter: grayscale(1) !important; 126 } 127 */ 119 128 </style> 120 129 <?php … … 477 486 * Add custom class to discontinued product. 478 487 * 479 * @param string $attr class attribute.480 * @param object$attachment .481 * @param array$size .482 * @return array attr488 * @param [type] $attr . 489 * @param [type] $attachment . 490 * @param [type] $size . 491 * @return array 483 492 */ 484 493 function dpssw_attachment_image_attributes( $attr, $attachment, $size ) { 485 // $product_id = $attachment->post_parent; // product id. METHDO DISCARDED DUE TO ISSUE. 486 487 // Get the product id of the current product. 494 495 // Get the global product object. 488 496 global $product; 489 490 // Fallback if product not available. 491 if ( ! $product ) { 492 return $attr; 493 } 494 495 $product_id = $product->get_id(); // Product id. 497 $this_product = $product; 498 499 // Check if it's the object and object is of products. 500 if ( gettype( $product ) === 'object' && $product instanceof WC_Product ) { 501 502 $product_id = $product->get_id(); // product id from global product. 503 504 } else { 505 $product_id = $attachment->post_parent; // product id from attachment. 506 } 496 507 497 508 if ( $product_id ) { … … 536 547 } 537 548 } 549 550 $product = $this_product; 551 538 552 return $attr; 539 } 553 554 } 555 556 // add_filter( 'woocommerce_post_class', 'dpssw_add_discontinued_class_to_product_wrapper', 10, 2 ); // MIGHT NOT FIRED IN CUSTOM THEMES/TEMPLATES. 557 // function dpssw_add_discontinued_class_to_product_wrapper( $classes, $product ) {}. 540 558 541 559 -
discontinued-product-stock-status-woocommerce/trunk/languages/discontinued-products-stock-status.pot
r3410883 r3414108 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Discontinued Product Stock Status for WooCommerce 1.5. 6\n"5 "Project-Id-Version: Discontinued Product Stock Status for WooCommerce 1.5.7\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/discontinued-product-stock-status-woocommerce\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-12-0 4T12:06:05+00:00\n"12 "POT-Creation-Date: 2025-12-08T09:49:58+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 136 136 msgstr "" 137 137 138 #: includes/dpssw-functions.php:314 139 #: includes/dpssw-functions.php:320 140 #: includes/dpssw-functions.php:411 138 #: includes/dpssw-functions.php:323 139 #: includes/dpssw-functions.php:329 141 140 #: includes/dpssw-functions.php:420 141 #: includes/dpssw-functions.php:429 142 142 #: includes/dpssw-product-data-tabs.php:962 143 143 msgid "This product has been discontinued." 144 144 msgstr "" 145 145 146 #: includes/dpssw-functions.php:5 52146 #: includes/dpssw-functions.php:570 147 147 msgid "Permission Denied." 148 148 msgstr "" 149 149 150 #: includes/dpssw-functions.php: 597150 #: includes/dpssw-functions.php:615 151 151 msgid "Awesome, you've been using" 152 152 msgstr "" 153 153 154 #: includes/dpssw-functions.php: 597154 #: includes/dpssw-functions.php:615 155 155 msgid "for more than 1 week" 156 156 msgstr "" 157 157 158 #: includes/dpssw-functions.php: 598158 #: includes/dpssw-functions.php:616 159 159 msgid "If you like our plugin would you like to rate our plugin at WordPress.org ?" 160 160 msgstr "" 161 161 162 #: includes/dpssw-functions.php:6 00162 #: includes/dpssw-functions.php:618 163 163 msgid "Yes, I'd like to rate it!" 164 164 msgstr "" 165 165 166 #: includes/dpssw-functions.php:6 03166 #: includes/dpssw-functions.php:621 167 167 msgid "I already did!" 168 168 msgstr "" -
discontinued-product-stock-status-woocommerce/trunk/readme.txt
r3410883 r3414108 5 5 Tested up to: 6.8.1 6 6 Requires PHP: 7.2 7 Stable tag: 1.5. 67 Stable tag: 1.5.7 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 75 75 76 76 == Changelog == 77 = 1.5.7 2025-12-08 = 78 79 * Fix - Added a fallback to product ID detection to fix inconsistent grayscale behavior. 80 77 81 = 1.5.6 2025-12-04 = 78 82
Note: See TracChangeset
for help on using the changeset viewer.