Skip to content

Conversation

@felixarntz
Copy link
Member

Fixes #713.

Note: There's no way to do this via WPCS flags, so we need to rely on the error message to detect the relevant violation and downgrade it to a warning accordingly. This can be done with minimal additional code by overriding the relevant parent method.

@felixarntz felixarntz added [Type] Bug An existing feature is broken Checks Audit/test of the particular part of the plugin [Team] Plugins Issues owned by Plugins Team labels Oct 15, 2024
@felixarntz felixarntz added this to the 1.3.0 milestone Oct 15, 2024
@github-actions
Copy link

github-actions bot commented Oct 15, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: felixarntz <flixos90@git.wordpress.org>
Co-authored-by: swissspidy <swissspidy@git.wordpress.org>
Co-authored-by: ernilambar <rabmalin@git.wordpress.org>
Co-authored-by: frantorres <frantorres@git.wordpress.org>
Co-authored-by: davidperezgar <davidperez@git.wordpress.org>
Co-authored-by: ironprogrammer <ironprogrammer@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@swissspidy swissspidy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still not a fan of projects doing this but this is better than the current experience I suppose.

@ernilambar
Copy link
Member

Still not a fan of projects doing this but this is better than the current experience I suppose.

Agree. Personally I would want my plugin's string independent from core string and have full control to the plugin itself.

@ernilambar ernilambar merged commit e40ea2e into trunk Oct 16, 2024
@ernilambar ernilambar deleted the fix/713-default-textdomain-warning branch October 16, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Checks Audit/test of the particular part of the plugin [Team] Plugins Issues owned by Plugins Team [Type] Bug An existing feature is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin i18n check complains about default text domain

4 participants