Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#35507 closed enhancement (fixed)

Pass routing information to rest_dispatch_request hook

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

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 11 years ago.

Download all attachments as: .zip

Change History (3)

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


11 years ago

#2 @rmccue
11 years ago

  • Owner set to rmccue
  • Resolution → fixed
  • Status new → 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.