Skip to content

Move capabilities check behind admin_init and is_admin #471

Move capabilities check behind admin_init and is_admin

Move capabilities check behind admin_init and is_admin #471

Triggered via pull request September 13, 2024 22:23
Status Failure
Total duration 25s
Artifacts

lint-php.yml

on: pull_request
Run PHP Code Sniffer
15s
Run PHP Code Sniffer
Fit to window
Zoom out
Zoom in

Annotations

1 error and 2 warnings
Run PHP Code Sniffer
Process completed with exit code 2.
Run PHP Code Sniffer
The following actions use a deprecated Node.js version and will be forced to run on node20: technote-space/get-diff-action@v6, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Run PHP Code Sniffer
Unexpected input(s) 'SUFFIX_FILTER', valid inputs are ['GITHUB_TOKEN', 'DOT', 'BASE', 'RELATIVE', 'DIFF_FILTER', 'FORMAT', 'ESCAPE_JSON', 'SEPARATOR', 'PATTERNS', 'MINIMATCH_OPTION_NOBRACE', 'MINIMATCH_OPTION_NOGLOBSTAR', 'MINIMATCH_OPTION_DOT', 'MINIMATCH_OPTION_NOEXT', 'MINIMATCH_OPTION_NOCASE', 'MINIMATCH_OPTION_MATCH_BASE', 'MINIMATCH_OPTION_NONEGATE', 'FILES', 'SUMMARY_INCLUDE_FILES', 'ABSOLUTE', 'SET_ENV_NAME', 'SET_ENV_NAME_FILTERED_DIFF', 'SET_ENV_NAME_MATCHED_FILES', 'SET_ENV_NAME_COUNT', 'SET_ENV_NAME_INSERTIONS', 'SET_ENV_NAME_DELETIONS', 'SET_ENV_NAME_LINES', 'DIFF_DEFAULT', 'FILTERED_DIFF_DEFAULT', 'MATCHED_FILES_DEFAULT', 'COUNT_DEFAULT', 'GET_FILE_DIFF', 'INSERTIONS_DEFAULT', 'DELETIONS_DEFAULT', 'LINES_DEFAULT', 'CHECK_ONLY_COMMIT_WHEN_DRAFT', 'SUPPRESS_ERROR']