WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months ago

#38279 closed defect (bug) (fixed)

REST API Unit Test Docs: Remove reference to the plugin

Reported by: kraftbj Owned by: rachelbaker
Milestone: 4.7 Priority: lowest
Severity: trivial Version: 4.4
Component: REST API Keywords: has-patch
Focuses: docs Cc:

Description

In the unit tests for the REST API infrastructure, a mention the "the plugin should be installed and activated", referring to when the infrastructure was in the feature plugin. Since that is merged to Core, the reference is outdated.

Attachments (2)

38279.diff (442 bytes) - added by kraftbj 9 months ago.
38279.2.diff (613 bytes) - added by rachelbaker 9 months ago.

Download all attachments as: .zip

Change History (4)

@kraftbj
9 months ago

#1 @rachelbaker
9 months ago

  • Milestone changed from Awaiting Review to 4.7

@rachelbaker
9 months ago

#2 @rachelbaker
9 months ago

  • Owner set to rachelbaker
  • Resolution set to fixed
  • Status changed from new to closed

In 38771:

REST API: Remove reference to the plugin in infrastructure activation test.

Also adds class exists checks for WP_REST_Request and WP_REST_Response.

Props kraftbj.
Fixes #38279.

Note: See TracTickets for help on using tickets.