<!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>[58230] trunk: Options: Add 'label' argument to register_setting.</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/58230">58230</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/58230","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>ellatrix</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2024-05-29 08:51:04 +0000 (Wed, 29 May 2024)</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'>Options: Add 'label' argument to register_setting.

The 'label' will displayed to users when editing core or custom settings via block editors. It avoids hardcoding Settings labels and improves extensibility.

Backports https://github.com/WordPress/gutenberg/pull/59243.

Props mamaduka, timothyblynjacobs, ellatrix.

Fixes <a href="https://core.trac.wordpress.org/ticket/61023">#61023</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesoptionphp">trunk/src/wp-includes/option.php</a></li>
<li><a href="#trunksrcwpincludesrestapiendpointsclasswprestsettingscontrollerphp">trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php</a></li>
<li><a href="#trunktestsphpunittestsrestapirestsettingscontrollerphp">trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php</a></li>
<li><a href="#trunktestsqunitfixtureswpapigeneratedjs">trunk/tests/qunit/fixtures/wp-api-generated.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesoptionphp"></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/option.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/option.php  2024-05-29 08:21:18 UTC (rev 58229)
+++ trunk/src/wp-includes/option.php    2024-05-29 08:51:04 UTC (rev 58230)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2659,6 +2659,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'name' => 'title',
</span><span class="cx" style="display: block; padding: 0 10px">                        ),
</span><span class="cx" style="display: block; padding: 0 10px">                        'type'         => 'string',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        'label'        => __( 'Title' ),
</ins><span class="cx" style="display: block; padding: 0 10px">                         'description'  => __( 'Site title.' ),
</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">@@ -2671,6 +2672,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                'name' => 'description',
</span><span class="cx" style="display: block; padding: 0 10px">                        ),
</span><span class="cx" style="display: block; padding: 0 10px">                        'type'         => 'string',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        'label'        => __( 'Tagline' ),
</ins><span class="cx" style="display: block; padding: 0 10px">                         'description'  => __( 'Site tagline.' ),
</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">@@ -2801,6 +2803,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'show_in_rest' => true,
</span><span class="cx" style="display: block; padding: 0 10px">                        'type'         => 'integer',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        'label'        => __( 'Maximum posts per page' ),
</ins><span class="cx" style="display: block; padding: 0 10px">                         'description'  => __( 'Blog pages show at most.' ),
</span><span class="cx" style="display: block; padding: 0 10px">                        'default'      => 10,
</span><span class="cx" style="display: block; padding: 0 10px">                )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2812,6 +2815,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'show_in_rest' => true,
</span><span class="cx" style="display: block; padding: 0 10px">                        'type'         => 'string',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        'label'        => __( 'Show on front' ),
</ins><span class="cx" style="display: block; padding: 0 10px">                         'description'  => __( 'What to show on the front 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">@@ -2822,6 +2826,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                array(
</span><span class="cx" style="display: block; padding: 0 10px">                        'show_in_rest' => true,
</span><span class="cx" style="display: block; padding: 0 10px">                        'type'         => 'integer',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        'label'        => __( 'Page on front' ),
</ins><span class="cx" style="display: block; padding: 0 10px">                         'description'  => __( 'The ID of the page that should be displayed on the front 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">@@ -2860,6 +2865,7 @@
</span><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">                        'type'         => 'string',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                        'label'        => __( 'Allow comments on new posts' ),
</ins><span class="cx" style="display: block; padding: 0 10px">                         'description'  => __( 'Allow people to submit comments on new posts.' ),
</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">@@ -2874,6 +2880,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 4.7.0 `$args` can be passed to set flags on the setting, similar to `register_meta()`.
</span><span class="cx" style="display: block; padding: 0 10px">  * @since 5.5.0 `$new_whitelist_options` was renamed to `$new_allowed_options`.
</span><span class="cx" style="display: block; padding: 0 10px">  *              Please consider writing more inclusive code.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since 6.6.0 Added the `label` argument.
</ins><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  * @global array $new_allowed_options
</span><span class="cx" style="display: block; padding: 0 10px">  * @global array $wp_registered_settings
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2887,6 +2894,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  *
</span><span class="cx" style="display: block; padding: 0 10px">  *     @type string     $type              The type of data associated with this setting.
</span><span class="cx" style="display: block; padding: 0 10px">  *                                         Valid values are 'string', 'boolean', 'integer', 'number', 'array', and 'object'.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *     @type string     $label             A label of the data attached to this setting.
</ins><span class="cx" style="display: block; padding: 0 10px">  *     @type string     $description       A description of the data attached to this setting.
</span><span class="cx" style="display: block; padding: 0 10px">  *     @type callable   $sanitize_callback A callback function that sanitizes the option's value.
</span><span class="cx" style="display: block; padding: 0 10px">  *     @type bool|array $show_in_rest      Whether data associated with this setting should be included in the REST API.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2907,6 +2915,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        $defaults = array(
</span><span class="cx" style="display: block; padding: 0 10px">                'type'              => 'string',
</span><span class="cx" style="display: block; padding: 0 10px">                'group'             => $option_group,
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'label'             => '',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'description'       => '',
</span><span class="cx" style="display: block; padding: 0 10px">                'sanitize_callback' => null,
</span><span class="cx" style="display: block; padding: 0 10px">                'show_in_rest'      => false,
</span></span></pre></div>
<a id="trunksrcwpincludesrestapiendpointsclasswprestsettingscontrollerphp"></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-settings-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-settings-controller.php    2024-05-29 08:21:18 UTC (rev 58229)
+++ trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php      2024-05-29 08:51:04 UTC (rev 58230)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -237,6 +237,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        $default_schema = array(
</span><span class="cx" style="display: block; padding: 0 10px">                                'type'        => empty( $args['type'] ) ? null : $args['type'],
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                                'title'       => empty( $args['label'] ) ? '' : $args['label'],
</ins><span class="cx" style="display: block; padding: 0 10px">                                 'description' => empty( $args['description'] ) ? '' : $args['description'],
</span><span class="cx" style="display: block; padding: 0 10px">                                'default'     => isset( $args['default'] ) ? $args['default'] : null,
</span><span class="cx" style="display: block; padding: 0 10px">                        );
</span></span></pre></div>
<a id="trunktestsphpunittestsrestapirestsettingscontrollerphp"></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/rest-settings-controller.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php   2024-05-29 08:21:18 UTC (rev 58229)
+++ trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php     2024-05-29 08:51:04 UTC (rev 58230)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -781,4 +781,19 @@
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 2, $response->data['mycustomsetting']['test2'] );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->assertSame( 3, $response->data['mycustomsetting']['test3'] );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+       /**
+        * @ticket 61023
+        */
+       public function test_provides_setting_metadata_in_schema() {
+               $request  = new WP_REST_Request( 'OPTIONS', '/wp/v2/settings' );
+               $response = rest_get_server()->dispatch( $request );
+               $data     = $response->get_data();
+               $title    = $data['schema']['properties']['title'];
+
+               $this->assertSame( 'string', $title['type'] );
+               $this->assertSame( 'Title', $title['title'] );
+               $this->assertSame( 'Site title.', $title['description'] );
+               $this->assertSame( null, $title['default'] );
+       }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunktestsqunitfixtureswpapigeneratedjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/qunit/fixtures/wp-api-generated.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/qunit/fixtures/wp-api-generated.js    2024-05-29 08:21:18 UTC (rev 58229)
+++ trunk/tests/qunit/fixtures/wp-api-generated.js      2024-05-29 08:51:04 UTC (rev 58230)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10738,16 +10738,19 @@
</span><span class="cx" style="display: block; padding: 0 10px">                     ],
</span><span class="cx" style="display: block; padding: 0 10px">                     "args": {
</span><span class="cx" style="display: block; padding: 0 10px">                         "title": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "Title",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "Site title.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "description": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "Tagline",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "Site tagline.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "url": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "Site URL.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "format": "uri",
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10754,6 +10757,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "email": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "This address is used for admin purposes, like new user notification.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "format": "email",
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10760,66 +10764,79 @@
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "timezone": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "A city in the same timezone as you.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "date_format": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "A date format for all date strings.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "time_format": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "A time format for all time strings.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "start_of_week": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "A day number of the week that the week should start on.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "integer",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "language": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "WordPress locale code.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "use_smilies": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "Convert emoticons like :-) and :-P to graphics on display.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "boolean",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "default_category": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "Default post category.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "integer",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "default_post_format": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "Default post format.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "posts_per_page": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "Maximum posts per page",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "Blog pages show at most.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "integer",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "show_on_front": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "Show on front",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "What to show on the front page",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "page_on_front": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "Page on front",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "The ID of the page that should be displayed on the front page",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "integer",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "page_for_posts": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "The ID of the page that should display the latest posts",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "integer",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "default_ping_status": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "Allow link notifications from other blogs (pingbacks and trackbacks) on new articles.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "enum": [
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10829,6 +10846,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "default_comment_status": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "Allow comments on new posts",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "Allow people to submit comments on new posts.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "string",
</span><span class="cx" style="display: block; padding: 0 10px">                             "enum": [
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -10838,11 +10856,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "site_logo": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "Site logo.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "integer",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span><span class="cx" style="display: block; padding: 0 10px">                         },
</span><span class="cx" style="display: block; padding: 0 10px">                         "site_icon": {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                            "title": "",
</ins><span class="cx" style="display: block; padding: 0 10px">                             "description": "Site icon.",
</span><span class="cx" style="display: block; padding: 0 10px">                             "type": "integer",
</span><span class="cx" style="display: block; padding: 0 10px">                             "required": false
</span></span></pre>
</div>
</div>

</body>
</html>