Plugin Directory

Changeset 3760641


Ignore:
Timestamp:
10/22/2026 11:26:33 PM (3 hours ago)
Author:
gatemi
Message:

Release 1.0.2

Location:
gatemi-trust-badges
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gatemi-trust-badges/tags/1.0.2/gatemi-trust-badges.php

    r3753132 r3760641  
    66 * Author: Gatemi
    77 * Author URI: https://gatemi.com/
    8  * Version: 1.0.1
     8 * Version: 1.0.2
    99 * Requires at least: 6.4
    1010 * Requires PHP: 7.4
    … …  
    3030}
    3131
    32 define( 'GMTB_VERSION', '1.0.1' );
     32define( 'GMTB_VERSION', '1.0.2' );
    3333define( 'GMTB_PLUGIN_FILE', __FILE__ );
    3434define( 'GMTB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • gatemi-trust-badges/tags/1.0.2/includes/class-gmtb-render.php

    r3700538 r3760641  
    160160                        return $content;
    161161                }
     162                // The Checkout block hands its order-received and order-pay endpoints
     163                // to the classic shortcode, whose templates fire no placement hook —
     164                // so the block path draws nothing there either, rather than a "secure
     165                // checkout" row under a thank-you page.
     166                if ( 'checkout' === $where && function_exists( 'is_wc_endpoint_url' ) && ( is_wc_endpoint_url( 'order-received' ) || is_wc_endpoint_url( 'order-pay' ) ) ) {
     167                        return $content;
     168                }
     169                // Nor under an empty Cart block: the classic empty-cart page fires no
     170                // after-totals hook, because there are no totals to be below.
     171                if ( 'cart' === $where && function_exists( 'WC' ) && is_object( WC()->cart ) && WC()->cart->is_empty() ) {
     172                        return $content;
     173                }
    162174
    163175                return $content . wp_kses( $this->markup( $where ), self::allowed_html() );
  • gatemi-trust-badges/tags/1.0.2/languages/gatemi-trust-badges.pot

    r3700538 r3760641  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Gatemi Trust Badges 1.0.0\n"
     5"Project-Id-Version: Gatemi Trust Badges 1.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gatemi-trust-badges\n"
    77"Last-Translator: Gatemi <support@gatemi.com>\n"
    … …  
    6161msgstr ""
    6262
    63 #: gatemi-trust-badges.php:55
     63#: gatemi-trust-badges.php:57
    6464msgid "Gatemi Trust Badges requires WooCommerce to be installed and active."
    6565msgstr ""
  • gatemi-trust-badges/tags/1.0.2/readme.txt

    r3753132 r3760641  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    7979== Changelog ==
    8080
     81= 1.0.2 =
     82* Fixed: no badge row on the order-received and order-pay pages, or under an empty Cart block, matching the classic checkout.
     83
    8184= 1.0.1 =
    8285* Changed: when WooCommerce is missing the plugin now says so in a plain row under its own entry on the Plugins screen, instead of an admin notice shown on every admin page.
  • gatemi-trust-badges/trunk/gatemi-trust-badges.php

    r3753132 r3760641  
    66 * Author: Gatemi
    77 * Author URI: https://gatemi.com/
    8  * Version: 1.0.1
     8 * Version: 1.0.2
    99 * Requires at least: 6.4
    1010 * Requires PHP: 7.4
    … …  
    3030}
    3131
    32 define( 'GMTB_VERSION', '1.0.1' );
     32define( 'GMTB_VERSION', '1.0.2' );
    3333define( 'GMTB_PLUGIN_FILE', __FILE__ );
    3434define( 'GMTB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • gatemi-trust-badges/trunk/includes/class-gmtb-render.php

    r3700538 r3760641  
    160160                        return $content;
    161161                }
     162                // The Checkout block hands its order-received and order-pay endpoints
     163                // to the classic shortcode, whose templates fire no placement hook —
     164                // so the block path draws nothing there either, rather than a "secure
     165                // checkout" row under a thank-you page.
     166                if ( 'checkout' === $where && function_exists( 'is_wc_endpoint_url' ) && ( is_wc_endpoint_url( 'order-received' ) || is_wc_endpoint_url( 'order-pay' ) ) ) {
     167                        return $content;
     168                }
     169                // Nor under an empty Cart block: the classic empty-cart page fires no
     170                // after-totals hook, because there are no totals to be below.
     171                if ( 'cart' === $where && function_exists( 'WC' ) && is_object( WC()->cart ) && WC()->cart->is_empty() ) {
     172                        return $content;
     173                }
    162174
    163175                return $content . wp_kses( $this->markup( $where ), self::allowed_html() );
  • gatemi-trust-badges/trunk/languages/gatemi-trust-badges.pot

    r3700538 r3760641  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Gatemi Trust Badges 1.0.0\n"
     5"Project-Id-Version: Gatemi Trust Badges 1.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/gatemi-trust-badges\n"
    77"Last-Translator: Gatemi <support@gatemi.com>\n"
    … …  
    6161msgstr ""
    6262
    63 #: gatemi-trust-badges.php:55
     63#: gatemi-trust-badges.php:57
    6464msgid "Gatemi Trust Badges requires WooCommerce to be installed and active."
    6565msgstr ""
  • gatemi-trust-badges/trunk/readme.txt

    r3753132 r3760641  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    7979== Changelog ==
    8080
     81= 1.0.2 =
     82* Fixed: no badge row on the order-received and order-pay pages, or under an empty Cart block, matching the classic checkout.
     83
    8184= 1.0.1 =
    8285* Changed: when WooCommerce is missing the plugin now says so in a plain row under its own entry on the Plugins screen, instead of an admin notice shown on every admin page.
Note: See TracChangeset for help on using the changeset viewer.