diff options
author | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2020-07-28 00:05:59 +0000 |
---|---|---|
committer | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2020-07-28 00:05:59 +0000 |
commit | 72dfc468c5ce498380cb1edd966a81fc46cd385e (patch) | |
tree | 909e6f1395044afd0c75f63183aa455651888517 /src/js/_enqueues/wp/api.js | |
parent | 9ed92faaca92f66ec9e2979c9d896ddab3e4e993 (diff) | |
download | wordpress-72dfc468c5ce498380cb1edd966a81fc46cd385e.tar.gz wordpress-72dfc468c5ce498380cb1edd966a81fc46cd385e.zip |
Docs: Correct alignment for some parameters in JS documentation.
Follow-up to [48650].
See #43828.
git-svn-id: https://develop.svn.wordpress.org/trunk@48651 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/js/_enqueues/wp/api.js')
-rw-r--r-- | src/js/_enqueues/wp/api.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/_enqueues/wp/api.js b/src/js/_enqueues/wp/api.js index 6484e9d2b6..eb3bb842ab 100644 --- a/src/js/_enqueues/wp/api.js +++ b/src/js/_enqueues/wp/api.js @@ -186,7 +186,7 @@ * Extract a route part based on negative index. * * @param {string} route The endpoint route. - * @param {number} part The number of parts from the end of the route to retrieve. Default 1. + * @param {number} part The number of parts from the end of the route to retrieve. Default 1. * Example route `/a/b/c`: part 1 is `c`, part 2 is `b`, part 3 is `a`. * @param {string} [versionString] Version string, defaults to `wp.api.versionString`. * @param {boolean} [reverse] Whether to reverse the order when extracting the route part. Optional, default false. @@ -361,7 +361,7 @@ * Build a helper function to retrieve related model. * * @param {string} parentModel The parent model. - * @param {number} modelId The model ID if the object to request + * @param {number} modelId The model ID if the object to request * @param {string} modelName The model name to use when constructing the model. * @param {string} embedSourcePoint Where to check the embedds object for _embed data. * @param {string} embedCheckField Which model field to check to see if the model has data. |