WordPress.org

Make WordPress Core

Opened 14 months ago

Closed 12 months ago

Last modified 12 months ago

#45196 closed defect (bug) (fixed)

REST API: Regenerate $fixture_replacements

Reported by: pento Owned by: danielbachhuber
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: REST API Keywords: has-patch fixed-5.0
Focuses: rest-api Cc:
PR Number:

Description

With all the new endpoints having been committed, something is causing changes to wp-api-generate.js.

The $fixture_replacements array in rest-schema-setup.php needs to be regenerated, per these instructions.

Attachments (1)

45196.1.diff (27.0 KB) - added by danielbachhuber 14 months ago.

Download all attachments as: .zip

Change History (7)

#1 @danielbachhuber
14 months ago

  • Focuses rest-api added

#2 @danielbachhuber
14 months ago

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

In 43851:

REST API: Regenerate fixure schema after introduction of new endpoints.

This fixture schema ensures wp-api-generated.js doesn't change when running tests in local dev environments.

Fixes #45196.

#3 @danielbachhuber
14 months ago

  • Keywords has-patch fixed-5.0 added; needs-patch removed
  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopening for merge to trunk, after all other REST API patches have landed in trunk.

#4 @danielbachhuber
14 months ago

In 43852:

REST API: Fix array syntax after [43851].

I thought I was writing JavaScript. Alas.

See #45196.

#5 @jeremyfelt
12 months ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 44217:

REST API: Regenerate fixure schema after introduction of new endpoints.

This fixture schema ensures wp-api-generated.js doesn't change when running tests in local dev environments.

Merges [43851] from the 5.0 branch to trunk. wp-api-generated.js generated based on current trunk.
Props danielbachhuber.
Fixes #45196.

#6 @jeremyfelt
12 months ago

In 44218:

REST API: Fix array syntax after [43851].

I thought I was writing JavaScript. Alas.

Merges [43852] from the 5.0 branch to trunk.

Props danielbachhuber.
See #45196.

Note: See TracTickets for help on using tickets.