<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[55173] trunk: Docs: Improve documentation for block pattern properties.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/55173">55173</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/55173","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2023-02-01 15:00:19 +0000 (Wed, 01 Feb 2023)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Docs: Improve documentation for block pattern properties.
Includes:
* Adding the `templateTypes` property to the `WP_Block_Patterns_Registry::register()` DocBlock.
* Adding `@since` notes for the `postTypes` and `templateTypes` properties to:
* `_register_theme_block_patterns()`
* `WP_Block_Patterns_Registry::register()`
* Bringing some consistency to the order of properties between:
* `_register_theme_block_patterns()`
* `WP_Block_Patterns_Registry::register()`
* `WP_REST_Block_Patterns_Controller::prepare_item_for_response()`
* `WP_REST_Block_Patterns_Controller::get_item_schema()`
Follow-up to <a href="https://core.trac.wordpress.org/changeset/52943">[52943]</a>, <a href="https://core.trac.wordpress.org/changeset/53152">[53152]</a>, <a href="https://core.trac.wordpress.org/changeset/54263">[54263]</a>, <a href="https://core.trac.wordpress.org/changeset/55168">[55168]</a>.
See <a href="https://core.trac.wordpress.org/ticket/56792">#56792</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesblockpatternsphp">trunk/src/wp-includes/block-patterns.php</a></li>
<li><a href="#trunksrcwpincludesclasswpblockpatternsregistryphp">trunk/src/wp-includes/class-wp-block-patterns-registry.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestblockpatternscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapiwpRestBlockPatternsControllerphp">trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternsController.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesblockpatternsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/block-patterns.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/block-patterns.php 2023-02-01 13:41:16 UTC (rev 55172)
+++ trunk/src/wp-includes/block-patterns.php 2023-02-01 15:00:19 UTC (rev 55173)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -298,14 +298,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * - Description
</span><span class="cx" style="display: block; padding: 0 10px"> * - Viewport Width
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * - Inserter (yes/no)
</ins><span class="cx" style="display: block; padding: 0 10px"> * - Categories (comma-separated values)
</span><span class="cx" style="display: block; padding: 0 10px"> * - Keywords (comma-separated values)
</span><span class="cx" style="display: block; padding: 0 10px"> * - Block Types (comma-separated values)
</span><span class="cx" style="display: block; padding: 0 10px"> * - Post Types (comma-separated values)
</span><span class="cx" style="display: block; padding: 0 10px"> * - Template Types (comma-separated values)
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * - Inserter (yes/no)
</del><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 6.0.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 6.1.0 The `postTypes` property was added.
+ * @since 6.2.0 The `templateTypes` property was added.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @access private
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function _register_theme_block_patterns() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -314,11 +316,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'slug' => 'Slug',
</span><span class="cx" style="display: block; padding: 0 10px"> 'description' => 'Description',
</span><span class="cx" style="display: block; padding: 0 10px"> 'viewportWidth' => 'Viewport Width',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'inserter' => 'Inserter',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'categories' => 'Categories',
</span><span class="cx" style="display: block; padding: 0 10px"> 'keywords' => 'Keywords',
</span><span class="cx" style="display: block; padding: 0 10px"> 'blockTypes' => 'Block Types',
</span><span class="cx" style="display: block; padding: 0 10px"> 'postTypes' => 'Post Types',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'inserter' => 'Inserter',
</del><span class="cx" style="display: block; padding: 0 10px"> 'templateTypes' => 'Template Types',
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpblockpatternsregistryphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-block-patterns-registry.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-block-patterns-registry.php 2023-02-01 13:41:16 UTC (rev 55172)
+++ trunk/src/wp-includes/class-wp-block-patterns-registry.php 2023-02-01 15:00:19 UTC (rev 55173)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -43,6 +43,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 5.8.0 Added support for the `blockTypes` property.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 6.1.0 Added support for the `postTypes` property.
+ * @since 6.2.0 Added support for the `templateTypes` property.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $pattern_name Block pattern name including namespace.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $pattern_properties {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -50,17 +52,18 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $title Required. A human-readable title for the pattern.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type string $content Required. Block HTML markup for the pattern.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type string $description Optional. Visually hidden text used to describe the pattern in the
- * inserter. A description is optional, but is strongly
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type string $description Optional. Visually hidden text used to describe the pattern
+ * in the inserter. A description is optional, but is strongly
</ins><span class="cx" style="display: block; padding: 0 10px"> * encouraged when the title does not fully describe what the
</span><span class="cx" style="display: block; padding: 0 10px"> * pattern does. The description will help users discover the
</span><span class="cx" style="display: block; padding: 0 10px"> * pattern while searching.
</span><span class="cx" style="display: block; padding: 0 10px"> * @type int $viewportWidth Optional. The intended width of the pattern to allow for a scaled
</span><span class="cx" style="display: block; padding: 0 10px"> * preview within the pattern inserter.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $categories Optional. A list of registered pattern categories used to group block
- * patterns. Block patterns can be shown on multiple categories.
- * A category must be registered separately in order to be used
- * here.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type array $categories Optional. A list of registered pattern categories used to group
+ * block patterns. Block patterns can be shown on multiple categories.
+ * A category must be registered separately in order to be used here.
+ * @type array $keywords Optional. A list of aliases or keywords that help users discover
+ * the pattern while searching.
</ins><span class="cx" style="display: block; padding: 0 10px"> * @type array $blockTypes Optional. A list of block names including namespace that could use
</span><span class="cx" style="display: block; padding: 0 10px"> * the block pattern in certain contexts (placeholder, transforms).
</span><span class="cx" style="display: block; padding: 0 10px"> * The block pattern is available in the block editor inserter
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -68,12 +71,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Certain blocks support further specificity besides the block name
</span><span class="cx" style="display: block; padding: 0 10px"> * (e.g. for `core/template-part` you can specify areas
</span><span class="cx" style="display: block; padding: 0 10px"> * like `core/template-part/header` or `core/template-part/footer`).
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @type array $postTypes An array of post types that the pattern is restricted to be used with.
- * The pattern will only be available when editing one of the post types
- * passed on the array. For all the other post types not part of the array
- * the pattern is not available at all.
- * @type array $keywords Optional. A list of aliases or keywords that help users discover the
- * pattern while searching.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @type array $postTypes Optional. An array of post types that the pattern is restricted
+ * to be used with. The pattern will only be available when editing one
+ * of the post types passed on the array. For all the other post types
+ * not part of the array the pattern is not available at all.
+ * @type array $templateTypes Optional. An array of template types where the pattern fits.
</ins><span class="cx" style="display: block; padding: 0 10px"> * }
</span><span class="cx" style="display: block; padding: 0 10px"> * @return bool True if the pattern was registered with success and false otherwise.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestblockpatternscontrollerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php 2023-02-01 13:41:16 UTC (rev 55172)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php 2023-02-01 15:00:19 UTC (rev 55173)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -165,14 +165,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $keys = array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'name' => 'name',
</span><span class="cx" style="display: block; padding: 0 10px"> 'title' => 'title',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'content' => 'content',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'description' => 'description',
</span><span class="cx" style="display: block; padding: 0 10px"> 'viewportWidth' => 'viewport_width',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'inserter' => 'inserter',
+ 'categories' => 'categories',
+ 'keywords' => 'keywords',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'blockTypes' => 'block_types',
</span><span class="cx" style="display: block; padding: 0 10px"> 'postTypes' => 'post_types',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'categories' => 'categories',
- 'keywords' => 'keywords',
- 'content' => 'content',
- 'inserter' => 'inserter',
</del><span class="cx" style="display: block; padding: 0 10px"> 'templateTypes' => 'template_types',
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> $data = array();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -213,6 +213,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'readonly' => true,
</span><span class="cx" style="display: block; padding: 0 10px"> 'context' => array( 'view', 'edit', 'embed' ),
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'content' => array(
+ 'description' => __( 'The pattern content.' ),
+ 'type' => 'string',
+ 'readonly' => true,
+ 'context' => array( 'view', 'edit', 'embed' ),
+ ),
</ins><span class="cx" style="display: block; padding: 0 10px"> 'description' => array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'description' => __( 'The pattern detailed description.' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'type' => 'string',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -225,18 +231,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'readonly' => true,
</span><span class="cx" style="display: block; padding: 0 10px"> 'context' => array( 'view', 'edit', 'embed' ),
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'block_types' => array(
- 'description' => __( 'Block types that the pattern is intended to be used with.' ),
- 'type' => 'array',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'inserter' => array(
+ 'description' => __( 'Determines whether the pattern is visible in inserter.' ),
+ 'type' => 'boolean',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'readonly' => true,
</span><span class="cx" style="display: block; padding: 0 10px"> 'context' => array( 'view', 'edit', 'embed' ),
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'post_types' => array(
- 'description' => __( 'An array of post types that the pattern is restricted to be used with.' ),
- 'type' => 'array',
- 'readonly' => true,
- 'context' => array( 'view', 'edit', 'embed' ),
- ),
</del><span class="cx" style="display: block; padding: 0 10px"> 'categories' => array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'description' => __( 'The pattern category slugs.' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'type' => 'array',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -249,21 +249,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'readonly' => true,
</span><span class="cx" style="display: block; padding: 0 10px"> 'context' => array( 'view', 'edit', 'embed' ),
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'template_types' => array(
- 'description' => __( 'An array of template types where the pattern fits.' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'block_types' => array(
+ 'description' => __( 'Block types that the pattern is intended to be used with.' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> 'type' => 'array',
</span><span class="cx" style="display: block; padding: 0 10px"> 'readonly' => true,
</span><span class="cx" style="display: block; padding: 0 10px"> 'context' => array( 'view', 'edit', 'embed' ),
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'content' => array(
- 'description' => __( 'The pattern content.' ),
- 'type' => 'string',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'post_types' => array(
+ 'description' => __( 'An array of post types that the pattern is restricted to be used with.' ),
+ 'type' => 'array',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'readonly' => true,
</span><span class="cx" style="display: block; padding: 0 10px"> 'context' => array( 'view', 'edit', 'embed' ),
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'inserter' => array(
- 'description' => __( 'Determines whether the pattern is visible in inserter.' ),
- 'type' => 'boolean',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'template_types' => array(
+ 'description' => __( 'An array of template types where the pattern fits.' ),
+ 'type' => 'array',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'readonly' => true,
</span><span class="cx" style="display: block; padding: 0 10px"> 'context' => array( 'view', 'edit', 'embed' ),
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapiwpRestBlockPatternsControllerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternsController.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternsController.php 2023-02-01 13:41:16 UTC (rev 55172)
+++ trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternsController.php 2023-02-01 15:00:19 UTC (rev 55173)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -78,9 +78,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'test/one',
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'title' => 'Pattern One',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'content' => '<!-- wp:heading {"level":1} --><h1>One</h1><!-- /wp:heading -->',
+ 'viewportWidth' => 1440,
</ins><span class="cx" style="display: block; padding: 0 10px"> 'categories' => array( 'test' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'viewportWidth' => 1440,
- 'content' => '<!-- wp:heading {"level":1} --><h1>One</h1><!-- /wp:heading -->',
</del><span class="cx" style="display: block; padding: 0 10px"> 'templateTypes' => array( 'page' ),
</span><span class="cx" style="display: block; padding: 0 10px"> )
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -89,8 +89,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'test/two',
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'title' => 'Pattern Two',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'content' => '<!-- wp:paragraph --><p>Two</p><!-- /wp:paragraph -->',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'categories' => array( 'test' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'content' => '<!-- wp:paragraph --><p>Two</p><!-- /wp:paragraph -->',
</del><span class="cx" style="display: block; padding: 0 10px"> 'templateTypes' => array( 'single' ),
</span><span class="cx" style="display: block; padding: 0 10px"> )
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -99,8 +99,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'test/three',
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'title' => 'Pattern Three',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'content' => '<!-- wp:paragraph --><p>Three</p><!-- /wp:paragraph -->',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'categories' => array( 'test', 'buttons', 'query' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'content' => '<!-- wp:paragraph --><p>Three</p><!-- /wp:paragraph -->',
</del><span class="cx" style="display: block; padding: 0 10px"> )
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre>
</div>
</div>
</body>
</html>