Fix warning triggered in WordPress 6.7 and newer due to translation functions being called too early in the plugin lifecycle. Thanks to @alessandrocarrera for the report and @richaber for additional context. #278
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: pull_request | |
| name: Inspections | |
| jobs: | |
| runPHPCSInspection: | |
| name: Run PHPCS inspection | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Run PHPCS inspection | |
| uses: rtCamp/action-phpcs-code-review@v2 | |
| env: | |
| GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
| SKIP_FOLDERS: ".github,docs,node_modules,tests,vendor" | |
| PHPCS_SNIFFS_EXCLUDE: "WordPress.Files.FileName" | |
| with: | |
| args: "WordPress,WordPress-Core,WordPress-Docs" |