REST API: Correct a documentation typo.
Props Zuige Fixes #38458 git-svn-id: https://develop.svn.wordpress.org/trunk@38878 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
73a1aed2cd
commit
e02a26d1a5
@ -179,7 +179,7 @@
|
|||||||
// Add any non empty args, merging them into the args object.
|
// Add any non empty args, merging them into the args object.
|
||||||
if ( ! _.isEmpty( routeEndpoint.args ) ) {
|
if ( ! _.isEmpty( routeEndpoint.args ) ) {
|
||||||
|
|
||||||
// Set as defauls if no args yet.
|
// Set as default if no args yet.
|
||||||
if ( _.isEmpty( modelInstance.prototype.args ) ) {
|
if ( _.isEmpty( modelInstance.prototype.args ) ) {
|
||||||
modelInstance.prototype.args = routeEndpoint.args;
|
modelInstance.prototype.args = routeEndpoint.args;
|
||||||
} else {
|
} else {
|
||||||
@ -196,7 +196,7 @@
|
|||||||
// Add any non empty args, merging them into the defaults object.
|
// Add any non empty args, merging them into the defaults object.
|
||||||
if ( ! _.isEmpty( routeEndpoint.args ) ) {
|
if ( ! _.isEmpty( routeEndpoint.args ) ) {
|
||||||
|
|
||||||
// Set as defauls if no defaults yet.
|
// Set as default if no defaults yet.
|
||||||
if ( _.isEmpty( modelInstance.prototype.options ) ) {
|
if ( _.isEmpty( modelInstance.prototype.options ) ) {
|
||||||
modelInstance.prototype.options = routeEndpoint.args;
|
modelInstance.prototype.options = routeEndpoint.args;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user