Skip to content

Commit 8b815cf

Browse files
authored
Merge pull request #93 from WP-API/make-glossary-top-level
Make glossary top level
2 parents 8e608db + 6763b70 commit 8b815cf

6 files changed

Lines changed: 16 additions & 13 deletions

File tree

bin/manifest.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"parent": null,
1515
"markdown_source": "https://github.com/WP-API/docs/blob/master/frequently-asked-questions.md"
1616
},
17+
"glossary": {
18+
"slug": "glossary",
19+
"parent": null,
20+
"markdown_source": "https://github.com/WP-API/docs/blob/master/glossary.md"
21+
},
1722
"index": {
1823
"slug": "index",
1924
"parent": null,
@@ -54,11 +59,6 @@
5459
"parent": "extending-the-rest-api",
5560
"markdown_source": "https://github.com/WP-API/docs/blob/master/extending-the-rest-api/controller-classes.md"
5661
},
57-
"extending-the-rest-api/glossary": {
58-
"slug": "glossary",
59-
"parent": "extending-the-rest-api",
60-
"markdown_source": "https://github.com/WP-API/docs/blob/master/extending-the-rest-api/glossary.md"
61-
},
6262
"extending-the-rest-api/modifying-responses": {
6363
"slug": "modifying-responses",
6464
"parent": "extending-the-rest-api",

bin/regenerate.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ function add_simple_schemas() {
7474
$title = 'Media Item';
7575
$plural = 'media';
7676
break;
77-
77+
7878
case 'rendered-block':
7979
$key = 'rendered-blocks';
8080
$title = 'Rendered Block';
8181
$plural = 'Rendered Blocks';
8282
break;
83-
83+
8484
case 'settings':
8585
$key = 'settings';
8686
$title = 'Site Setting';
@@ -95,13 +95,13 @@ function add_simple_schemas() {
9595
case 'type':
9696
$key = 'post-types';
9797
break;
98-
98+
9999
case 'wp_block':
100100
$key = 'blocks';
101101
$title = 'Editor Block';
102102
$plural = 'Editor Blocks';
103103
break;
104-
104+
105105
case 'wp_block-revision':
106106
$key = 'block-revisions';
107107
$title = 'Block Revision';

extending-the-rest-api.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Guides
44

5-
[Modifying responses](https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/): add fields to REST API response objects using `register_rest_field`
5+
[Modifying responses](https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/): add fields to REST API response objects using `register_meta` or `register_rest_field`
66

77
[Adding Endpoints](https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/): create custom REST API endpoints for your plugin or application
88

@@ -13,8 +13,11 @@
1313

1414
[Defining your API Schema](https://developer.wordpress.org/rest-api/extending-the-rest-api/schema/): define the schema for your REST API resources and their arguments
1515

16-
[Glossary](https://developer.wordpress.org/rest-api/extending-the-rest-api/glossary/): get up to speed with phrases used throughout our documentation
16+
[Glossary](https://developer.wordpress.org/rest-api/glossary/): get up to speed with phrases used throughout our documentation
1717

1818
[Routes & Endpoints](https://developer.wordpress.org/rest-api/extending-the-rest-api/routes-and-endpoints/): dive deeper into the nuances of REST API routes and the endpoints they provide
1919

2020
[Controller Classes](https://developer.wordpress.org/rest-api/extending-the-rest-api/controller-classes/): discover how to structure and extend REST API endpoint controller classes
21+
22+
23+
[Frequently Asked Questions](https://developer.wordpress.org/rest-api/frequently-asked-questions/): see some of the most frequent inquiries about the REST API and learn how to solve common problems

extending-the-rest-api/adding-custom-endpoints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ add_action( 'rest_api_init', function () {
4545
} );
4646
```
4747

48-
Right now, we're only registering the one endpoint for the route. The term "route" refers to the URL, whereas "endpoint" refers to the function behind it that corresponds to a method *and* a URL (for more information, see the [Glossary](https://developer.wordpress.org/rest-api/extending-the-rest-api/glossary/)).
48+
Right now, we're only registering the one endpoint for the route. The term "route" refers to the URL, whereas "endpoint" refers to the function behind it that corresponds to a method *and* a URL (for more information, see the [Glossary](https://developer.wordpress.org/rest-api/glossary/)).
4949

5050
For example, if your site domain is `example.com` and you've kept the API path of `wp-json`, then the full URL would be `http://example.com/wp-json/myplugin/v1/author/(?P\d+)`.
5151

File renamed without changes.

using-the-rest-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ These articles explore the basic structure of the WordPress REST API.
1212

1313
[Authentication](https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/): authorize your REST API requests so that you can create, update and delete your data
1414

15-
[Frequently Asked Questions](https://developer.wordpress.org/rest-api/using-the-rest-api/frequently-asked-questions/): see some of the most frequent inquiries about the REST API and learn how to solve common problems
15+
[Frequently Asked Questions](https://developer.wordpress.org/rest-api/frequently-asked-questions/): see some of the most frequent inquiries about the REST API and learn how to solve common problems
1616

1717

1818
## Resources & Utilities

0 commit comments

Comments
 (0)