Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#45196 closed defect (bug) (fixed)

REST API: Regenerate $fixture_replacements

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

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 6 years ago.

Download all attachments as: .zip

Change History (7)

#1 @danielbachhuber
6 years ago

  • Focuses rest-api added

#2 @danielbachhuber
6 years 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
6 years 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
6 years ago

In 43852:

REST API: Fix array syntax after [43851].

I thought I was writing JavaScript. Alas.

See #45196.

#5 @jeremyfelt
6 years 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
6 years 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.