Skip to content

Conversation

@justlevine
Copy link
Contributor

What

This PR updates our WP_REST_* controller classes to use $request->get_params() or $request->get_param( $param_name ), instead of using ArrayAccess to get the $request parameters directly.

Why

This opts the params into the full WP_Rest* lifecycle, so the rest_request_parameter_order filter etc are applied consistently.

@codecov
Copy link

codecov bot commented Aug 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (trunk@7736905). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             trunk      #22   +/-   ##
========================================
  Coverage         ?   90.66%           
  Complexity       ?       99           
========================================
  Files            ?        7           
  Lines            ?      557           
  Branches         ?        0           
========================================
  Hits             ?      505           
  Misses           ?       52           
  Partials         ?        0           
Flag Coverage Δ
unit 90.66% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you for a follow up 👍🏻

@gziolo gziolo enabled auto-merge (squash) August 18, 2025 06:27
@gziolo gziolo merged commit 2314f52 into WordPress:trunk Aug 18, 2025
15 checks passed
@gziolo gziolo added the [Type] Enhancement New feature or request label Aug 18, 2025
@justlevine justlevine deleted the dev/request_get_params branch August 20, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants