Skip to content

Improve single comment endpoint read permissions checks #45811

Improve single comment endpoint read permissions checks

Improve single comment endpoint read permissions checks #45811

Triggered via pull request November 20, 2025 16:52
Status Failure
Total duration 22s
Artifacts

php-compatibility.yml

on: pull_request
Check PHP compatibility  /  Run compatibility checks
19s
Check PHP compatibility / Run compatibility checks
Slack Notifications  /  Prepare notifications
Slack Notifications / Prepare notifications
Slack Notifications  /  Cancelled notifications
Slack Notifications / Cancelled notifications
Slack Notifications  /  Failure notifications
Slack Notifications / Failure notifications
Slack Notifications  /  Fixed notifications
Slack Notifications / Fixed notifications
Slack Notifications  /  Success notifications
Slack Notifications / Success notifications
Failed workflow tasks
Failed workflow tasks
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
Check PHP compatibility / Run compatibility checks
Process completed with exit code 1.
Check PHP compatibility / Run compatibility checks
Process completed with exit code 2.
Check PHP compatibility / Run compatibility checks: src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php#L150
Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4. Found: current_user_can( 'edit_post', $post->ID ) { return new WP_Error( 'rest_comment_not_supported_post_type', __( 'Sorry, this post type does not support notes.' ), array( 'status' => 403 ) ); }