Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#51060 closed defect (bug) (fixed)

Update register_rest_route docblock to reflect additions since 5.5

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

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 4 years ago.
Adds the relevant entry to the docblock

Download all attachments as: .zip

Change History (5)

@psykro
4 years ago

Adds the relevant entry to the docblock

#1 follow-up: @SergeyBiryukov
4 years ago

  • Milestone changed from Awaiting Review to 5.5.1

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

Replying to SergeyBiryukov:
Thanks!

#3 @SergeyBiryukov
4 years ago

  • Resolution set to fixed
  • Status changed from assigned to 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
4 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.