CartTrigger – BAG

Changelog

2.0.9

  • Fix: corrected Contributors username in readme.txt to match the WordPress.org plugin owner account.

2.0.8

  • Perf: PhotoSwipe CSS and JS are now enqueued only on brand pages that have a gallery, instead of on every brand page. Brands without a gallery no longer load 4 unnecessary assets (2 CSS + 2 JS).

2.0.7

  • Fix: gallery images not saved after selection in the media uploader. Root cause: HTML input had id=”ctb_gallery” while the admin JS targeted #ctbag_gallery, so the hidden field was never updated before form submission.

2.0.6

  • Fix: fatal error on brand save due to mismatched method name after 2.0.5 prefix rename (ctbag_save_term_meta).
  • Fix: added one-time migration to move existing term meta from legacy ctb_* keys to ctbag_* keys.

2.0.5

  • Compliance: renamed all shortcodes and PHP helper functions from ctb_* to ctbag_* to meet the WordPress.org 5-character prefix requirement (ctbag = CartTrigger BAG).
  • Compliance: extracted inline gallery lightbox JavaScript to an external file (assets/js/ctbag-gallery-lightbox.js) loaded via wp_enqueue_script().
  • Compatibility: WC tested up to 10.6.1.

2.0.4

  • New: Gallery — individual image removal with an × button that appears on hover, without reopening the media uploader.
  • New: Gallery — drag & drop reordering of thumbnails (jQuery UI Sortable).
  • New: Custom Fields — drag & drop reordering of field rows via a handle icon.
  • New: Awards — drag & drop reordering of award rows via a handle icon.

2.0.3

  • Fix: double-quote characters (“) in award names, event names, and custom field values were corrupted on save. Root cause: WordPress calls wp_unslash() (stripslashes) on meta values inside add_metadata(), which stripped the backslash from ” in the JSON string, producing invalid JSON. Fix: awards and custom fields are now stored as native PHP arrays via maybe_serialize() — no backslash escaping involved, immune to the slashing issue. Backward-compatible: existing JSON-format data is still read correctly.
  • Fix: accented characters (é, à, ó…) in award/field text were silently dropped on some server configurations. Replaced sanitize_text_field() with wp_strip_all_tags() to avoid the internal wp_check_invalid_utf8() call that incorrectly rejected valid multi-byte characters.

2.0.0

  • Complete rewrite with professional admin UI (module cards).
  • Added HTML Description module with TinyMCE editor on both Add and Edit brand screens.
  • Added native WooCommerce lightbox (PhotoSwipe) support for gallery shortcode.
  • Added activation notice with link to brand management screen.
  • Plugin fully internationalised — translations available for Italian (it_IT) and Spanish (es_ES).

Plugin Website
Visit website

Author
Poletto 1976
Version:
2.0.9
Last Updated
March 19, 2026
Requires
WordPress 6.3
Tested Up To
WordPress 6.9.4
Requires PHP
7.4

Share Post

Join our newsletter.

Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.