Skip to content

Commit

Permalink
Link to the Trac ticket for the REST API bug that we're working around
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Dec 24, 2018
1 parent 0e5759e commit cf2d701
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core-data/src/resolvers.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export function* canUser( action, resource, id ) {
// Ideally this would always be an OPTIONS request, but unfortunately there's
// a bug in the REST API which causes the Allow header to not be sent on
// OPTIONS requests to /posts/:id routes.
// https://core.trac.wordpress.org/ticket/45753
method: id ? 'GET' : 'OPTIONS',
parse: false,
} );
Expand Down

0 comments on commit cf2d701

Please sign in to comment.