Skip to content

Normalize text domain to site-add-on-watchdog and update hook prefixes#85

Merged
happyloa merged 1 commit intomainfrom
codex/fix-image-issues-detected-by-plugin-check
Dec 21, 2025
Merged

Normalize text domain to site-add-on-watchdog and update hook prefixes#85
happyloa merged 1 commit intomainfrom
codex/fix-image-issues-detected-by-plugin-check

Conversation

@happyloa
Copy link
Owner

Motivation

  • Standardize the plugin text domain to site-add-on-watchdog (remove -main) so translation functions and the plugin header use a single, valid domain.
  • Align admin hooks and filter names to the expected plugin prefix site_add_on_watchdog_ for consistency across code and filters.
  • Ensure templates, notices, and generated messages all use the same translation domain to avoid missing translations.
  • Keep runtime behavior unchanged other than localization and hook name normalization.

Description

  • Replaced occurrences of the old text domain with site-add-on-watchdog across the plugin entry file, PHP sources, and templates (files updated include site-add-on-watchdog.php, src/*.php, and templates/*.php).
  • Updated filter/hook names and usages from site_add_on_watchdog_main_* to site_add_on_watchdog_* (for example site_add_on_watchdog_main_admin_history_display -> site_add_on_watchdog_admin_history_display).
  • Adjusted __(), _e(), esc_html__(), esc_html_e(), and related localization calls to use the new text domain and updated translator strings in email/notification formatting and admin UI.
  • Kept behavior, options, and logic intact while only changing localization strings, plugin header Text Domain, and internal hook/filter identifiers.

Testing

  • No automated tests were executed for this change.
  • Manual inspection and a project-wide search were used to confirm occurrences of the old text domain and hook prefixes were updated.
  • A commit was created containing the updates and the working tree shows the modified files were staged and committed.
  • No runtime integration tests were run as part of this PR.

Codex Task

@happyloa happyloa merged commit 92db455 into main Dec 21, 2025
2 checks passed
@happyloa happyloa deleted the codex/fix-image-issues-detected-by-plugin-check branch December 21, 2025 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant