Skip to content

Commit d41b6eb

Browse files
committed
CHECK Utils/I18nTextDomainFixer: update for PHPCS 4.0
Update the README.md file to document the limitations of running the sniff together with PHPCS >= 4.0. Remember to pull the corresponding PR to update the wiki.
1 parent 555ea7b commit d41b6eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ At this moment, WordPressCS offer the following tools:
247247
- `old_text_domain`: an array with one or more (old) text domain names which need to be replaced;
248248
- `new_text_domain`: the correct (new) text domain as a string.
249249

250+
**Note**: When using PHP_CodeSniffer 4.0+, this sniff will fix the text domain everywhere for plugins, but it will **not** fix the text domain in the CSS file header for themes, as PHP_CodeSniffer 4.0+ does not support scanning CSS files. Manual intervention will be required to update the `Text Domain` header in the theme's CSS file.
251+
250252

251253
## Contributing
252254

0 commit comments

Comments
 (0)