WordPress.org

Make WordPress Core

Opened 4 weeks ago

Closed 4 weeks ago

Last modified 4 weeks ago

#51060 closed defect (bug) (fixed)

Update register_rest_route docblock to reflect additions since 5.5

Reported by: psykro Owned by: 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 weeks ago.
Adds the relevant entry to the docblock

Download all attachments as: .zip

Change History (5)

@psykro
4 weeks ago

Adds the relevant entry to the docblock

#1 follow-up: @SergeyBiryukov
4 weeks ago

  • Milestone changed from Awaiting Review to 5.5.1

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

Replying to SergeyBiryukov:
Thanks!

#3 @SergeyBiryukov
4 weeks 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 weeks 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.