Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#39178 closed enhancement (fixed)

REST API: Improve strings added after 4.7 string freeze

Reported by: jnylen0 Owned by: adamsilverstein
Priority: normal Milestone: 4.8
Component: REST API Version: 4.7
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

We fixed a few API bugs in 4.7 that required new error strings. Some of these were during string freeze, so we repurposed existing strings rather than adding new ones.

We should go through and update these to better messages and error codes. For example, [39440] added rest_orderby_include_missing_include which needs a more helpful message and a less verbose error code (see the rest_no_search_term_defined error immediately above).

Attachments (2)

39178.diff​ (926 bytes ) - added by PranaliPatel 10 years ago.
Update the error string messages.
39178.2.diff​ (999 bytes ) - added by adamsilverstein 10 years ago.

Download all attachments as: .zip

Change History (15)

#1 @ocean90
10 years ago

Note that we usually don't change strings in minor releases.

This ticket was mentioned in ​Slack in #core by jeffpaul. ​View the logs.


10 years ago

#3 @jbpaul17
10 years ago

  • Milestone 4.7.1 → 4.8

Given that this is more of a "nice to have" and not a breaking issue, we're going to plan on resolving this in 4.8. See linked Slack discussion for conversation during/after today's bug scrub.

@PranaliPatel
10 years ago

Update the error string messages.

#4 @PranaliPatel
10 years ago

  • Keywords has-patch added; needs-patch removed

#5 @jbpaul17
10 years ago

  • Keywords needs-testing added

This needs testing and an owner if its going to land in 4.8. Anyone care to help review this to see it land in 4.8?

This ticket was mentioned in ​Slack in #core by jeffpaul. ​View the logs.


10 years ago

#7 @jbpaul17
10 years ago

  • Owner set to adamsilverstein
  • Status new → assigned

#8 @adamsilverstein
10 years ago

I will test and commit what we have so far, are there any other strings we need to adjust @jnylen0?

#9 @adamsilverstein
10 years ago

39178.2.diff​ - slight language fix define a include changed to define an include

#10 @adamsilverstein
10 years ago

  • Keywords commit added; needs-testing removed

#11 @adamsilverstein
10 years ago

  • Resolution → fixed
  • Status assigned → closed

In 40571:

REST API: Improve strings added after 4.7 string freeze.

Clarify the rest_orderby_include_missing_include error message.

Props PranaliPatel.
Fixes #39178.

#12 @jnylen0
9 years ago

In 40606:

REST API: Improve a few more strings added after the 4.7 string freeze.

See #39178.

See also #40720 for potential follow-up steps.

#13 @jnylen0
9 years ago

In 40630:

REST API: Update wp-api.js fixtures after string changes.

See #39178.

Note: See TracTickets for help on using tickets.