Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions bin/templates/reference-parts/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ <h2>Schema</h2>
{% for key, property in schema.properties %}
<tr id="schema-{{ key }}">
<td>
<code>{{ key }}</code><br />
<span class="type">
{{ property.type | join(' or ') }}{% if property.format %},
{% if property.format == 'date-time' %}
datetime (<a href="https://core.trac.wordpress.org/ticket/41032">details</a>)
{% elseif property.format == 'uri' %}
uri
{% else %}
{{ property.format }}
{% endif %}{% endif %}
</span>
<code>{{ key }}</code>
</td>
<td>
<p>{{ property.description }}</p>
<p class="type">
JSON data type: {{ property.type | join(' or ') }}{% if property.format %},
{% if property.format == 'date-time' %}
Format: datetime (<a href="https://core.trac.wordpress.org/ticket/41032">details</a>)
{% elseif property.format == 'uri' %}
Format: uri
{% else %}
Format: {{ property.format }}
{% endif %}{% endif %}
</p>
{% if property.readonly %}
<p class="read-only">Read only</p>
{% endif %}
Expand Down
62 changes: 31 additions & 31 deletions reference/application-passwords.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,92 +10,92 @@
<table class="attributes">
<tr id="schema-uuid">
<td>
<code>uuid</code><br />
<span class="type">
string,
uuid
</span>
<code>uuid</code>
</td>
<td>
<p>The unique identifier for the application password.</p>
<p class="type">
JSON data type: string,
Format: uuid
</p>
<p class="read-only">Read only</p>
<p class="context">Context: <code>view</code>, <code>edit</code>, <code>embed</code></p>
</td>
</tr>
<tr id="schema-app_id">
<td>
<code>app_id</code><br />
<span class="type">
string,
uuid
</span>
<code>app_id</code>
</td>
<td>
<p>A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.</p>
<p class="type">
JSON data type: string,
Format: uuid
</p>
<p class="context">Context: <code>view</code>, <code>edit</code>, <code>embed</code></p>
</td>
</tr>
<tr id="schema-name">
<td>
<code>name</code><br />
<span class="type">
string </span>
<code>name</code>
</td>
<td>
<p>The name of the application password.</p>
<p class="type">
JSON data type: string </p>
<p class="context">Context: <code>view</code>, <code>edit</code>, <code>embed</code></p>
</td>
</tr>
<tr id="schema-password">
<td>
<code>password</code><br />
<span class="type">
string </span>
<code>password</code>
</td>
<td>
<p>The generated password. Only available after adding an application.</p>
<p class="type">
JSON data type: string </p>
<p class="read-only">Read only</p>
<p class="context">Context: <code>edit</code></p>
</td>
</tr>
<tr id="schema-created">
<td>
<code>created</code><br />
<span class="type">
string,
datetime (<a href="https://core.trac.wordpress.org/ticket/41032">details</a>)
</span>
<code>created</code>
</td>
<td>
<p>The GMT date the application password was created.</p>
<p class="type">
JSON data type: string,
Format: datetime (<a href="https://core.trac.wordpress.org/ticket/41032">details</a>)
</p>
<p class="read-only">Read only</p>
<p class="context">Context: <code>view</code>, <code>edit</code></p>
</td>
</tr>
<tr id="schema-last_used">
<td>
<code>last_used</code><br />
<span class="type">
string or null,
datetime (<a href="https://core.trac.wordpress.org/ticket/41032">details</a>)
</span>
<code>last_used</code>
</td>
<td>
<p>The GMT date the application password was last used.</p>
<p class="type">
JSON data type: string or null,
Format: datetime (<a href="https://core.trac.wordpress.org/ticket/41032">details</a>)
</p>
<p class="read-only">Read only</p>
<p class="context">Context: <code>view</code>, <code>edit</code></p>
</td>
</tr>
<tr id="schema-last_ip">
<td>
<code>last_ip</code><br />
<span class="type">
string or null,
ip
</span>
<code>last_ip</code>
</td>
<td>
<p>The IP address the application password was last used by.</p>
<p class="type">
JSON data type: string or null,
Format: ip
</p>
<p class="read-only">Read only</p>
<p class="context">Context: <code>view</code>, <code>edit</code></p>
</td>
Expand Down
86 changes: 43 additions & 43 deletions reference/block-directory-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,148 +10,148 @@
<table class="attributes">
<tr id="schema-name">
<td>
<code>name</code><br />
<span class="type">
string </span>
<code>name</code>
</td>
<td>
<p>The block name, in namespace/block-name format.</p>
<p class="type">
JSON data type: string </p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-title">
<td>
<code>title</code><br />
<span class="type">
string </span>
<code>title</code>
</td>
<td>
<p>The block title, in human readable format.</p>
<p class="type">
JSON data type: string </p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-description">
<td>
<code>description</code><br />
<span class="type">
string </span>
<code>description</code>
</td>
<td>
<p>A short description of the block, in human readable format.</p>
<p class="type">
JSON data type: string </p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-id">
<td>
<code>id</code><br />
<span class="type">
string </span>
<code>id</code>
</td>
<td>
<p>The block slug.</p>
<p class="type">
JSON data type: string </p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-rating">
<td>
<code>rating</code><br />
<span class="type">
number </span>
<code>rating</code>
</td>
<td>
<p>The star rating of the block.</p>
<p class="type">
JSON data type: number </p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-rating_count">
<td>
<code>rating_count</code><br />
<span class="type">
integer </span>
<code>rating_count</code>
</td>
<td>
<p>The number of ratings.</p>
<p class="type">
JSON data type: integer </p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-active_installs">
<td>
<code>active_installs</code><br />
<span class="type">
integer </span>
<code>active_installs</code>
</td>
<td>
<p>The number sites that have activated this block.</p>
<p class="type">
JSON data type: integer </p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-author_block_rating">
<td>
<code>author_block_rating</code><br />
<span class="type">
number </span>
<code>author_block_rating</code>
</td>
<td>
<p>The average rating of blocks published by the same author.</p>
<p class="type">
JSON data type: number </p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-author_block_count">
<td>
<code>author_block_count</code><br />
<span class="type">
integer </span>
<code>author_block_count</code>
</td>
<td>
<p>The number of blocks published by the same author.</p>
<p class="type">
JSON data type: integer </p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-author">
<td>
<code>author</code><br />
<span class="type">
string </span>
<code>author</code>
</td>
<td>
<p>The WordPress.org username of the block author.</p>
<p class="type">
JSON data type: string </p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-icon">
<td>
<code>icon</code><br />
<span class="type">
string,
uri
</span>
<code>icon</code>
</td>
<td>
<p>The block icon.</p>
<p class="type">
JSON data type: string,
Format: uri
</p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-last_updated">
<td>
<code>last_updated</code><br />
<span class="type">
string,
datetime (<a href="https://core.trac.wordpress.org/ticket/41032">details</a>)
</span>
<code>last_updated</code>
</td>
<td>
<p>The date when the block was last updated.</p>
<p class="type">
JSON data type: string,
Format: datetime (<a href="https://core.trac.wordpress.org/ticket/41032">details</a>)
</p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
<tr id="schema-humanized_updated">
<td>
<code>humanized_updated</code><br />
<span class="type">
string </span>
<code>humanized_updated</code>
</td>
<td>
<p>The date when the block was last updated, in fuzzy human readable format.</p>
<p class="type">
JSON data type: string </p>
<p class="context">Context: <code>view</code></p>
</td>
</tr>
Expand Down
18 changes: 9 additions & 9 deletions reference/block-pattern-categories.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,36 @@
<table class="attributes">
<tr id="schema-name">
<td>
<code>name</code><br />
<span class="type">
string </span>
<code>name</code>
</td>
<td>
<p>The category name.</p>
<p class="type">
JSON data type: string </p>
<p class="read-only">Read only</p>
<p class="context">Context: <code>view</code>, <code>edit</code>, <code>embed</code></p>
</td>
</tr>
<tr id="schema-label">
<td>
<code>label</code><br />
<span class="type">
string </span>
<code>label</code>
</td>
<td>
<p>The category label, in human readable format.</p>
<p class="type">
JSON data type: string </p>
<p class="read-only">Read only</p>
<p class="context">Context: <code>view</code>, <code>edit</code>, <code>embed</code></p>
</td>
</tr>
<tr id="schema-description">
<td>
<code>description</code><br />
<span class="type">
string </span>
<code>description</code>
</td>
<td>
<p>The category description, in human readable format.</p>
<p class="type">
JSON data type: string </p>
<p class="read-only">Read only</p>
<p class="context">Context: <code>view</code>, <code>edit</code>, <code>embed</code></p>
</td>
Expand Down
Loading