Security: require capability checks on privileged network-admin AJAX endpoints #2076
code-quality.yml
on: pull_request
Code Quality Checks
39s
Annotations
12 warnings
|
Code Quality Checks
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, tj-actions/changed-files@2d756ea4c53f7f6b397767d8723b3a10a9f35bf2. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Code Quality Checks:
inc/admin-pages/class-view-logs-admin-page.php#L83
Action callback returns array but should not return anything.
|
|
Code Quality Checks:
inc/admin-pages/class-system-info-admin-page.php#L489
Found usage of constant WP_POST_REVISIONS. Use wp_revisions_to_keep() instead.
|
|
Code Quality Checks:
inc/class-ajax.php#L351
Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
|
|
Code Quality Checks:
inc/class-ajax.php#L351
Line indented incorrectly; expected at least 5 tabs, found 4
|
|
Code Quality Checks:
inc/class-ajax.php#L350
Equals sign not aligned with surrounding assignments; expected 13 spaces but found 14 spaces
|
|
Code Quality Checks:
inc/class-ajax.php#L350
Line indented incorrectly; expected at least 5 tabs, found 4
|
|
Code Quality Checks:
inc/class-ajax.php#L349
Line indented incorrectly; expected at least 5 tabs, found 4
|
|
Code Quality Checks:
inc/class-ajax.php#L348
Line indented incorrectly; expected at least 5 tabs, found 4
|
|
Code Quality Checks:
inc/class-ajax.php#L346
Line indented incorrectly; expected at least 5 tabs, found 4
|
|
Code Quality Checks:
inc/class-ajax.php#L89
Empty line not required before block comment
|
|
Code Quality Checks:
inc/admin-pages/class-view-logs-admin-page.php#L198
file_get_contents() is discouraged. Use wp_remote_get() for remote URLs instead.
|