v0.6.0 — slug rename to opensalestax-for-woocommerce
Summary
Renames the plugin slug opensalestax-woocommerce → opensalestax-for-woocommerce to comply with WordPress.org's trademark policy. The bare woocommerce term in plugin slugs is restricted by WP-org unless paired with one of the allowed patterns: for woocommerce, with woocommerce, using woocommerce, or and woocommerce. Plugin Check flagged this as a WARNING in v0.5.1; the WP-org reviewer treats it as a hard reject.
Changed
- Main PHP file renamed
opensalestax-woocommerce.php→opensalestax-for-woocommerce.php(viagit mv— blame and history preserved). - Text domain renamed across every
__()/_e()/esc_html__()/esc_attr__()call insrc/and the main file. Plugin-headerText Domain:updated to match. - Plugin headers
Plugin URI:andAuthor URI:updated to the new GitHub repository URL. - Composer package name
ejosterberg/opensalestax-woocommerce→ejosterberg/opensalestax-for-woocommerce. Old Packagist package marked abandoned withreplacement: ejosterberg/opensalestax-for-woocommerce; existingcomposer require ejosterberg/opensalestax-woocommercein consumers'composer.jsongets a deprecation warning pointing at the new package. - WC logger
sourceslug renamed (wc_get_logger()->warning(..., ['source' => 'opensalestax-for-woocommerce'])) so the new log channel matches the new plugin slug. - GitHub repository renamed
ejosterberg/opensalestax-woocommerce→ejosterberg/opensalestax-for-woocommerce. GitHub auto-installs a redirect from the old URL; existing clones and links continue to work.
Unchanged
- User-visible plugin name — still "OpenSalesTax for WooCommerce" (already user-friendly).
- PHP namespaces — still
OpenSalesTax\WooCommerce\…(not slug-derived). Class names unchanged. - Internal option keys (
opensalestax_*) — none containedwoocommerce. - Enqueue handles (
opensalestax-admin) — already prefix-clean. - Behavior — no functional changes; no settings migration required.
Verified
- Plugin Check (WP-CLI mode, run on VM 907 against the deployed copy on the new slug) reports 0 errors + 0 warnings. The v0.5.1
trademarked_termwarning is gone. - 115 unit tests green; PHPStan max + PHP-CS-Fixer dry-run + composer audit all clean.
- CI matrix green on PHP 8.2 / 8.3 / 8.4.
Upgrade notes
Drop the new opensalestax-for-woocommerce/ directory into wp-content/plugins/, activate, and de-activate the old opensalestax-woocommerce/ directory if you had it. Settings and tax-class mappings persist in wp_options (opensalestax_* keys) unchanged. No migration step required.
Full changelog
See CHANGELOG.md.