Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#51060 closed defect (bug) (fixed)

Update register_rest_route docblock to reflect additions since 5.5

Reported by: psykro Owned by: psykro
Priority: normal Milestone: 5.5.1
Component: REST API Version: 5.5
Severity: normal Keywords:
Cc: Focuses: docs, rest-api

Description

The WordPress 5.5 release added the permission_callback argument to the register_rest_route function, but this change is not reflected in the changelog section in the docblocl

Attachments (1)

51060.diff​ (653 bytes ) - added by psykro 6 years ago.
Adds the relevant entry to the docblock

Download all attachments as: .zip

Change History (5)

@psykro
6 years ago

Adds the relevant entry to the docblock

#1 follow-up: @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review → 5.5.1

#2 in reply to: ↑ 1 @psykro
6 years ago

Replying to SergeyBiryukov:
Thanks!

#3 @SergeyBiryukov
6 years ago

  • Resolution → fixed
  • Status assigned → closed

In 48827:

Docs: Add a @since note to register_rest_route() about the _doing_it_wrong() notice when the required permission_callback argument is not set.

Follow-up to [48526].

Props psykro.
Fixes #51060.

#4 @SergeyBiryukov
6 years ago

In 48828:

Docs: Add a @since note to register_rest_route() about the _doing_it_wrong() notice when the required permission_callback argument is not set.

Follow-up to [48526].

Props psykro.
Merges [48827] to the 5.5 branch.
Fixes #51060.

Note: See TracTickets for help on using tickets.