Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#35507 closed enhancement (fixed)

Pass routing information to rest_dispatch_request hook

Reported by: rmccue's profile rmccue Owned by: rmccue's profile rmccue
Milestone: 4.5 Priority: normal
Severity: normal Version: 4.4
Component: REST API Keywords: has-patch
Focuses: Cc:

Description

rest_dispatch_request is designed to allow hijacking the request dispatching to implement middleware/etc, however right now, there's not enough information to actually handle the dispatching.

Attached patch adds the $route and $handler parameters to allow dispatching correctly.

Attachments (1)

35507.diff (1.1 KB) - added by rmccue 9 years ago.

Download all attachments as: .zip

Change History (3)

@rmccue
9 years ago

This ticket was mentioned in Slack in #core-restapi by rmccue. View the logs.


9 years ago

#2 @rmccue
9 years ago

  • Owner set to rmccue
  • Resolution set to fixed
  • Status changed from new to closed

In 36534:

REST API: Add routing args to rest_dispatch_request filter.

This allows requests to be hijacked via the filter more easily.

Fixes #35507.

Note: See TracTickets for help on using tickets.