Plugin Directory

Changeset 3410883


Ignore:
Timestamp:
12/04/2025 12:25:07 PM (4 months ago)
Author:
saffiretech
Message:

Fixed GrayScale effect issue.

Location:
discontinued-product-stock-status-woocommerce
Files:
139 added
4 edited

Legend:

Unmodified
Added
Removed
  • discontinued-product-stock-status-woocommerce/trunk/discontinued-products-stock-status.php

    r3357813 r3410883  
    77 * Text Domain: discontinued-products-stock-status
    88 * Domain Path: /languages
    9  * Stable Tag : 1.5.5
     9 * Stable Tag : 1.5.6
    1010 * Requires at least: 5.0
    1111 * Tested up to: 6.8.1
     
    1414 * License:    GPLv3
    1515 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
    16  * Version: 1.5.5
     16 * Version: 1.5.6
    1717 */
    1818
  • discontinued-product-stock-status-woocommerce/trunk/includes/dpssw-functions.php

    r3357813 r3410883  
    483483 */
    484484function dpssw_attachment_image_attributes( $attr, $attachment, $size ) {
    485     $product_id = $attachment->post_parent; // product id.
     485    // $product_id = $attachment->post_parent; // product id. METHDO DISCARDED DUE TO ISSUE.
     486
     487    // Get the product id of the current product.
     488    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.
    486496
    487497    if ( $product_id ) {
  • discontinued-product-stock-status-woocommerce/trunk/languages/discontinued-products-stock-status.pot

    r3357813 r3410883  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Discontinued Product Stock Status for WooCommerce 1.5.5\n"
     5"Project-Id-Version: Discontinued Product Stock Status for WooCommerce 1.5.6\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/discontinued-product-stock-status-woocommerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-09-08T10:31:26+00:00\n"
     12"POT-Creation-Date: 2025-12-04T12:06:05+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.11.0\n"
     14"X-Generator: WP-CLI 2.12.0\n"
    1515"X-Domain: discontinued-products-stock-status\n"
    1616
     
    4141#. translators: %s: search term
    4242#: discontinued-products-stock-status.php:90
     43#, php-format
    4344msgid "Sorry, but this plugin requires the Woocommerce Plugin to be installed and active. <br><a href=\"%s\">&laquo; Return to Plugins</a>"
    4445msgstr ""
     
    143144msgstr ""
    144145
    145 #: includes/dpssw-functions.php:542
     146#: includes/dpssw-functions.php:552
    146147msgid "Permission Denied."
    147148msgstr ""
    148149
    149 #: includes/dpssw-functions.php:587
     150#: includes/dpssw-functions.php:597
    150151msgid "Awesome, you've been using"
    151152msgstr ""
    152153
    153 #: includes/dpssw-functions.php:587
     154#: includes/dpssw-functions.php:597
    154155msgid "for more than 1 week"
    155156msgstr ""
    156157
    157 #: includes/dpssw-functions.php:588
     158#: includes/dpssw-functions.php:598
    158159msgid "If you like our plugin would you like to rate our plugin at WordPress.org ?"
    159160msgstr ""
    160161
    161 #: includes/dpssw-functions.php:590
     162#: includes/dpssw-functions.php:600
    162163msgid "Yes, I'd like to rate it!"
    163164msgstr ""
    164165
    165 #: includes/dpssw-functions.php:593
     166#: includes/dpssw-functions.php:603
    166167msgid "I already did!"
    167168msgstr ""
  • discontinued-product-stock-status-woocommerce/trunk/readme.txt

    r3357813 r3410883  
    55Tested up to: 6.8.1
    66Requires PHP: 7.2
    7 Stable tag: 1.5.5
     7Stable tag: 1.5.6
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7575
    7676== Changelog ==
     77= 1.5.6 2025-12-04 =
     78
     79* Fix - Fixed the issue where the grayscale effect was not applied to some discontinued products.
     80
    7781= 1.5.5 2025-09-08 =
    7882
Note: See TracChangeset for help on using the changeset viewer.