Skip to content

v1.0.3

Choose a tag to compare

@idea89hq idea89hq released this 18 Aug 12:41
· 2 commits to master since this release

A correctness fix for translations, found by Plugin Check during the WordPress.org review.

Fixed

The text domain was idea89-assistant while the WordPress.org slug is idea89-ai-shopping-assistant. WordPress has loaded translations for directory-hosted plugins by slug since 4.6, so with the two out of step no translation would ever have loaded, in any language, and it would have failed silently. Plugin Check reported 55 WordPress.WP.I18n.TextDomainMismatch errors for this.

Only the i18n domain arguments were renamed. Idea89_Admin_Settings::PAGE_SLUG holds the same string but is the admin menu slug, not a text domain, so it stays as it is: changing it would move the settings page URL and break existing links.

Also removes load_plugin_textdomain(), discouraged since 4.6 for directory-hosted plugins and the source of the _load_textdomain_just_in_time notice on 6.7+, and annotates the three apply_filters( 'the_content', ... ) call sites that the PrefixAllGlobals sniff reads as unprefixed hooks when they in fact apply a core filter to render post content.

Plugin Check on the built zip: 60 issues to 0. Tests: 255 passing.

Installing

Download idea89-ai-shopping-assistant-1.0.3.zip below, then in wp-admin go to Plugins > Add New > Upload Plugin and select the file. No Composer step and no build step: the zip is ready to run as-is.

Requires WordPress 6.4 or later, WooCommerce 8.0 or later, and PHP 7.4 through 8.4.