<!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>[44217] trunk/tests/qunit/fixtures/wp-api-generated.js: REST API: Regenerate fixure schema after introduction of new endpoints.</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/44217">44217</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/44217","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>jeremyfelt</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2018-12-16 01:37:56 +0000 (Sun, 16 Dec 2018)</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'>REST API: Regenerate fixure schema after introduction of new endpoints.
This fixture schema ensures `wp-api-generated.js` doesn't change when running tests in local dev environments.
Merges <a href="https://core.trac.wordpress.org/changeset/43851">[43851]</a> from the 5.0 branch to trunk. `wp-api-generated.js` generated based on current trunk.
Props danielbachhuber.
Fixes <a href="https://core.trac.wordpress.org/ticket/45196">#45196</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsphpunittestsrestapirestschemasetupphp">trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php</a></li>
<li><a href="#trunktestsqunitfixtureswpapigeneratedjs">trunk/tests/qunit/fixtures/wp-api-generated.js</a></li>
</ul>
<h3>Property Changed</h3>
<ul>
<li><a href="#trunk">trunk/</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<span class="cx" style="display: block; padding: 0 10px">Index: trunk
</span><span class="cx" style="display: block; padding: 0 10px">===================================================================
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">--- trunk 2018-12-16 01:25:27 UTC (rev 44216)
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+++ trunk 2018-12-16 01:37:56 UTC (rev 44217)
</ins><a id="trunk"></a>
<div class="propset"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Property changes: trunk</h4>
<pre class="diff"><span>
</span></pre></div>
<a id="svnmergeinfo"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: svn:mergeinfo</h4></div>
<span class="cx" style="display: block; padding: 0 10px"> /branches/3.3:20543
</span><span class="cx" style="display: block; padding: 0 10px"> /branches/3.4:21757
</span><span class="cx" style="display: block; padding: 0 10px"> /branches/4.9:43557,43622
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/branches/5.0:43681-43682,43684-43688,43719-43720,43723,43726-43727,43729-43731,43734-43744,43751-43754,43758,43760-43765,43767-43770,43772,43774-43781,43783,43790-43806,43808-43821,43825,43828,43830-43834,43836-43843,43846-43850,43859-43860,43869-43876,43892,43898-43899,43904,43909,43912,43926-43929,43954,43956,43961-43963,44014,44017
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/branches/5.0:43681-43682,43684-43688,43719-43720,43723,43726-43727,43729-43731,43734-43744,43751-43754,43758,43760-43765,43767-43770,43772,43774-43781,43783,43790-43806,43808-43821,43825,43828,43830-43834,43836-43843,43846-43851,43859-43860,43869-43876,43892,43898-43899,43904,43909,43912,43926-43929,43954,43956,43961-43963,44014,44017
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="trunktestsphpunittestsrestapirestschemasetupphp"></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-schema-setup.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php 2018-12-16 01:25:27 UTC (rev 44216)
+++ trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php 2018-12-16 01:37:56 UTC (rev 44217)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -476,6 +476,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'Schema.routes./wp/v2/posts._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/posts',
</span><span class="cx" style="display: block; padding: 0 10px"> 'Schema.routes./wp/v2/pages._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/pages',
</span><span class="cx" style="display: block; padding: 0 10px"> 'Schema.routes./wp/v2/media._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/media',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'Schema.routes./wp/v2/blocks._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/blocks',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'Schema.routes./wp/v2/types._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/types',
</span><span class="cx" style="display: block; padding: 0 10px"> 'Schema.routes./wp/v2/statuses._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/statuses',
</span><span class="cx" style="display: block; padding: 0 10px"> 'Schema.routes./wp/v2/taxonomies._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/taxonomies',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -484,7 +485,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'Schema.routes./wp/v2/users._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/users',
</span><span class="cx" style="display: block; padding: 0 10px"> 'Schema.routes./wp/v2/users/me._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/users/me',
</span><span class="cx" style="display: block; padding: 0 10px"> 'Schema.routes./wp/v2/comments._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/comments',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'Schema.routes./wp/v2/search._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/search',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'Schema.routes./wp/v2/settings._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/settings',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'Schema.routes./wp/v2/themes._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/themes',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'oembed.routes./oembed/1.0._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0',
</span><span class="cx" style="display: block; padding: 0 10px"> 'oembed.routes./oembed/1.0/embed._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0/embed',
</span><span class="cx" style="display: block; padding: 0 10px"> 'oembed.routes./oembed/1.0/proxy._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0/proxy',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -501,8 +504,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'PostsCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types/post',
</span><span class="cx" style="display: block; padding: 0 10px"> 'PostsCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4',
</span><span class="cx" style="display: block; padding: 0 10px"> 'PostsCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'PostsCollection.0._links.predecessor-version.0.id' => 5,
- 'PostsCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions/5',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'PostsCollection.0._links.predecessor-version.0.id' => 6,
+ 'PostsCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions/6',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'PostsCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4',
</span><span class="cx" style="display: block; padding: 0 10px"> 'PostsCollection.0._links.wp:term.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4',
</span><span class="cx" style="display: block; padding: 0 10px"> 'PostsCollection.0._links.wp:term.1.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -510,53 +513,87 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'PostModel.guid.rendered' => 'http://example.org/?p=4',
</span><span class="cx" style="display: block; padding: 0 10px"> 'PostModel.link' => 'http://example.org/?p=4',
</span><span class="cx" style="display: block; padding: 0 10px"> 'postRevisions.0.author' => 2,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'postRevisions.0.id' => 5,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'postRevisions.0.id' => 6,
</ins><span class="cx" style="display: block; padding: 0 10px"> 'postRevisions.0.parent' => 4,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'postRevisions.0.slug' => '4-revision-v1',
- 'postRevisions.0.guid.rendered' => 'http://example.org/?p=5',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'postRevisions.0.slug' => '4-autosave-v1',
+ 'postRevisions.0.guid.rendered' => 'http://example.org/?p=6',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'postRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'postRevisions.1.author' => 2,
+ 'postRevisions.1.id' => 5,
+ 'postRevisions.1.parent' => 4,
+ 'postRevisions.1.slug' => '4-revision-v1',
+ 'postRevisions.1.guid.rendered' => 'http://example.org/?p=5',
+ 'postRevisions.1._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'revision.author' => 2,
</span><span class="cx" style="display: block; padding: 0 10px"> 'revision.id' => 5,
</span><span class="cx" style="display: block; padding: 0 10px"> 'revision.parent' => 4,
</span><span class="cx" style="display: block; padding: 0 10px"> 'revision.slug' => '4-revision-v1',
</span><span class="cx" style="display: block; padding: 0 10px"> 'revision.guid.rendered' => 'http://example.org/?p=5',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'PagesCollection.0.id' => 6,
- 'PagesCollection.0.guid.rendered' => 'http://example.org/?page_id=6',
- 'PagesCollection.0.link' => 'http://example.org/?page_id=6',
- 'PagesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/6',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'postAutosaves.0.author' => 2,
+ 'postAutosaves.0.id' => 6,
+ 'postAutosaves.0.parent' => 4,
+ 'postAutosaves.0.slug' => '4-autosave-v1',
+ 'postAutosaves.0.guid.rendered' => 'http://example.org/?p=6',
+ 'postAutosaves.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/4',
+ 'autosave.author' => 2,
+ 'autosave.id' => 6,
+ 'autosave.parent' => 4,
+ 'autosave.slug' => '4-autosave-v1',
+ 'autosave.guid.rendered' => 'http://example.org/?p=6',
+ 'PagesCollection.0.id' => 7,
+ 'PagesCollection.0.guid.rendered' => 'http://example.org/?page_id=7',
+ 'PagesCollection.0.link' => 'http://example.org/?page_id=7',
+ 'PagesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'PagesCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages',
</span><span class="cx" style="display: block; padding: 0 10px"> 'PagesCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types/page',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'PagesCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6',
- 'PagesCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/6/revisions',
- 'PagesCollection.0._links.predecessor-version.0.id' => 7,
- 'PagesCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/6/revisions/7',
- 'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6',
- 'PageModel.id' => 6,
- 'PageModel.guid.rendered' => 'http://example.org/?page_id=6',
- 'PageModel.link' => 'http://example.org/?page_id=6',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'PagesCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7',
+ 'PagesCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7/revisions',
+ 'PagesCollection.0._links.predecessor-version.0.id' => 9,
+ 'PagesCollection.0._links.predecessor-version.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7/revisions/9',
+ 'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7',
+ 'PageModel.id' => 7,
+ 'PageModel.guid.rendered' => 'http://example.org/?page_id=7',
+ 'PageModel.link' => 'http://example.org/?page_id=7',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'pageRevisions.0.author' => 2,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'pageRevisions.0.id' => 7,
- 'pageRevisions.0.parent' => 6,
- 'pageRevisions.0.slug' => '6-revision-v1',
- 'pageRevisions.0.guid.rendered' => 'http://example.org/?p=7',
- 'pageRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/6',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'pageRevisions.0.id' => 9,
+ 'pageRevisions.0.parent' => 7,
+ 'pageRevisions.0.slug' => '7-autosave-v1',
+ 'pageRevisions.0.guid.rendered' => 'http://example.org/?p=9',
+ 'pageRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7',
+ 'pageRevisions.1.author' => 2,
+ 'pageRevisions.1.id' => 8,
+ 'pageRevisions.1.parent' => 7,
+ 'pageRevisions.1.slug' => '7-revision-v1',
+ 'pageRevisions.1.guid.rendered' => 'http://example.org/?p=8',
+ 'pageRevisions.1._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'pageRevision.author' => 2,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'pageRevision.id' => 7,
- 'pageRevision.parent' => 6,
- 'pageRevision.slug' => '6-revision-v1',
- 'pageRevision.guid.rendered' => 'http://example.org/?p=7',
- 'MediaCollection.0.id' => 8,
- 'MediaCollection.0.guid.rendered' => 'http://example.org/?attachment_id=8',
- 'MediaCollection.0.link' => 'http://example.org/?attachment_id=8',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'pageRevision.id' => 8,
+ 'pageRevision.parent' => 7,
+ 'pageRevision.slug' => '7-revision-v1',
+ 'pageRevision.guid.rendered' => 'http://example.org/?p=8',
+ 'pageAutosaves.0.author' => 2,
+ 'pageAutosaves.0.id' => 9,
+ 'pageAutosaves.0.parent' => 7,
+ 'pageAutosaves.0.slug' => '7-autosave-v1',
+ 'pageAutosaves.0.guid.rendered' => 'http://example.org/?p=9',
+ 'pageAutosaves.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/7',
+ 'pageAutosave.author' => 2,
+ 'pageAutosave.id' => 9,
+ 'pageAutosave.parent' => 7,
+ 'pageAutosave.slug' => '7-autosave-v1',
+ 'pageAutosave.guid.rendered' => 'http://example.org/?p=9',
+ 'MediaCollection.0.id' => 10,
+ 'MediaCollection.0.guid.rendered' => 'http://example.org/?attachment_id=10',
+ 'MediaCollection.0.link' => 'http://example.org/?attachment_id=10',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'MediaCollection.0.description.rendered' => '<p class="attachment"><!-- <a...><img.../></a> --></p>',
</span><span class="cx" style="display: block; padding: 0 10px"> 'MediaCollection.0.source_url' => 'http://example.org/wp-content/uploads//tmp/canola.jpg',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'MediaCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media/8',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'MediaCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media/10',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'MediaCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media',
</span><span class="cx" style="display: block; padding: 0 10px"> 'MediaCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types/attachment',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'MediaCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8',
- 'MediaModel.id' => 8,
- 'MediaModel.guid.rendered' => 'http://example.org/?attachment_id=8',
- 'MediaModel.link' => 'http://example.org/?attachment_id=8',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'MediaCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10',
+ 'MediaModel.id' => 10,
+ 'MediaModel.guid.rendered' => 'http://example.org/?attachment_id=10',
+ 'MediaModel.link' => 'http://example.org/?attachment_id=10',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'MediaModel.description.rendered' => '<p class="attachment"><!-- <a...><img.../></a> --></p>',
</span><span class="cx" style="display: block; padding: 0 10px"> 'MediaModel.source_url' => 'http://example.org/wp-content/uploads//tmp/canola.jpg',
</span><span class="cx" style="display: block; padding: 0 10px"> 'TypesCollection.post._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -565,6 +602,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'TypesCollection.page._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages',
</span><span class="cx" style="display: block; padding: 0 10px"> 'TypesCollection.attachment._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types',
</span><span class="cx" style="display: block; padding: 0 10px"> 'TypesCollection.attachment._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'TypesCollection.wp_block._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types',
+ 'TypesCollection.wp_block._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/blocks',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'StatusesCollection.publish._links.archives.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts',
</span><span class="cx" style="display: block; padding: 0 10px"> 'StatusesCollection.future._links.archives.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=future',
</span><span class="cx" style="display: block; padding: 0 10px"> 'StatusesCollection.draft._links.archives.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=draft',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -576,13 +615,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'TaxonomiesCollection.post_tag._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/taxonomies',
</span><span class="cx" style="display: block; padding: 0 10px"> 'TaxonomiesCollection.post_tag._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags',
</span><span class="cx" style="display: block; padding: 0 10px"> 'CategoriesCollection.0.link' => 'http://example.org/?cat=1',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'CategoriesCollection.0.meta.test_single' => '',
+ 'CategoriesCollection.0.meta.test_multi' => [],
+ 'CategoriesCollection.0.meta.test_cat_single' => '',
+ 'CategoriesCollection.0.meta.test_cat_multi' => [],
</ins><span class="cx" style="display: block; padding: 0 10px"> 'CategoriesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories/1',
</span><span class="cx" style="display: block; padding: 0 10px"> 'CategoriesCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories',
</span><span class="cx" style="display: block; padding: 0 10px"> 'CategoriesCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/taxonomies/category',
</span><span class="cx" style="display: block; padding: 0 10px"> 'CategoriesCollection.0._links.wp:post_type.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&categories=1',
</span><span class="cx" style="display: block; padding: 0 10px"> 'CategoryModel.link' => 'http://example.org/?cat=1',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'CategoryModel.meta.test_single' => '',
+ 'CategoryModel.meta.test_multi' => [],
+ 'CategoryModel.meta.test_cat_single' => '',
+ 'CategoryModel.meta.test_cat_multi' => [],
</ins><span class="cx" style="display: block; padding: 0 10px"> 'TagsCollection.0.id' => 2,
</span><span class="cx" style="display: block; padding: 0 10px"> 'TagsCollection.0.link' => 'http://example.org/?tag=restapi-client-fixture-tag',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'TagsCollection.0.meta.test_single' => '',
+ 'TagsCollection.0.meta.test_multi' => [],
+ 'TagsCollection.0.meta.test_tag_meta' => '',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'TagsCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags/2',
</span><span class="cx" style="display: block; padding: 0 10px"> 'TagsCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags',
</span><span class="cx" style="display: block; padding: 0 10px"> 'TagsCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/taxonomies/post_tag',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -589,6 +639,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'TagsCollection.0._links.wp:post_type.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&tags=2',
</span><span class="cx" style="display: block; padding: 0 10px"> 'TagModel.id' => 2,
</span><span class="cx" style="display: block; padding: 0 10px"> 'TagModel.link' => 'http://example.org/?tag=restapi-client-fixture-tag',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'TagModel.meta.test_single' => '',
+ 'TagModel.meta.test_multi' => [],
+ 'TagModel.meta.test_tag_meta' => '',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'UsersCollection.0.link' => 'http://example.org/?author=1',
</span><span class="cx" style="display: block; padding: 0 10px"> 'UsersCollection.0.avatar_urls.24' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g',
</span><span class="cx" style="display: block; padding: 0 10px"> 'UsersCollection.0.avatar_urls.48' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=48&d=mm&r=g',
</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 2018-12-16 01:25:27 UTC (rev 44216)
+++ trunk/tests/qunit/fixtures/wp-api-generated.js 2018-12-16 01:37:56 UTC (rev 44217)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4980,8 +4980,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> ],
</span><span class="cx" style="display: block; padding: 0 10px"> "predecessor-version": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 5,
- "href": "http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions/5"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 6,
+ "href": "http://example.org/index.php?rest_route=/wp/v2/posts/4/revisions/6"
</ins><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"> "wp:attachment": [
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5057,13 +5057,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "author": 2,
</span><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 5,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 6,
</ins><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "parent": 4,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "slug": "4-revision-v1",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "slug": "4-autosave-v1",
</ins><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?p=5"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?p=6"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": ""
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5083,16 +5083,16 @@
</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"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "author": 376,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "author": 2,
</ins><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 36744,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 5,
</ins><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "parent": 36743,
- "slug": "36743-revision-v1",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "parent": 4,
+ "slug": "4-revision-v1",
</ins><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?p=36744"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?p=5"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": "REST API Client Fixture: Post"
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5106,7 +5106,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "_links": {
</span><span class="cx" style="display: block; padding: 0 10px"> "parent": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "href": "http://example.org/index.php?rest_route=/wp/v2/posts/36743"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "href": "http://example.org/index.php?rest_route=/wp/v2/posts/4"
</ins><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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5138,16 +5138,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> mockedApiResponse.postAutosaves = [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "author": 376,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "author": 2,
</ins><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 36745,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 6,
</ins><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "parent": 36743,
- "slug": "36743-autosave-v1",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "parent": 4,
+ "slug": "4-autosave-v1",
</ins><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?p=36745"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?p=6"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": ""
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5161,7 +5161,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "_links": {
</span><span class="cx" style="display: block; padding: 0 10px"> "parent": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "href": "http://example.org/index.php?rest_route=/wp/v2/posts/36743"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "href": "http://example.org/index.php?rest_route=/wp/v2/posts/4"
</ins><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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5169,16 +5169,16 @@
</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"> mockedApiResponse.autosave = {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "author": 376,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "author": 2,
</ins><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 36745,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 6,
</ins><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "parent": 36743,
- "slug": "36743-autosave-v1",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "parent": 4,
+ "slug": "4-autosave-v1",
</ins><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?p=36745"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?p=6"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": ""
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5193,11 +5193,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> mockedApiResponse.PagesCollection = [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 6,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 7,
</ins><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?page_id=6"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?page_id=7"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5204,7 +5204,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "slug": "restapi-client-fixture-page",
</span><span class="cx" style="display: block; padding: 0 10px"> "status": "publish",
</span><span class="cx" style="display: block; padding: 0 10px"> "type": "page",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "link": "http://example.org/?page_id=6",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "link": "http://example.org/?page_id=7",
</ins><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": "REST API Client Fixture: Page"
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5229,7 +5229,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "_links": {
</span><span class="cx" style="display: block; padding: 0 10px"> "self": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "href": "http://example.org/index.php?rest_route=/wp/v2/pages/6"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7"
</ins><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"> "collection": [
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5245,24 +5245,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "replies": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><span class="cx" style="display: block; padding: 0 10px"> "embeddable": true,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"
</ins><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"> "version-history": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><span class="cx" style="display: block; padding: 0 10px"> "count": 2,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "href": "http://example.org/index.php?rest_route=/wp/v2/pages/6/revisions"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7/revisions"
</ins><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"> "predecessor-version": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 7,
- "href": "http://example.org/index.php?rest_route=/wp/v2/pages/6/revisions/7"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 9,
+ "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7/revisions/9"
</ins><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"> "wp:attachment": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"
</ins><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"> "curies": [
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5277,11 +5277,11 @@
</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"> mockedApiResponse.PageModel = {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 6,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 7,
</ins><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?page_id=6"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?page_id=7"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5288,7 +5288,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "slug": "restapi-client-fixture-page",
</span><span class="cx" style="display: block; padding: 0 10px"> "status": "publish",
</span><span class="cx" style="display: block; padding: 0 10px"> "type": "page",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "link": "http://example.org/?page_id=6",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "link": "http://example.org/?page_id=7",
</ins><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": "REST API Client Fixture: Page"
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5317,13 +5317,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "author": 2,
</span><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 7,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 9,
</ins><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "parent": 6,
- "slug": "6-revision-v1",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "parent": 7,
+ "slug": "7-autosave-v1",
</ins><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?p=7"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?p=9"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": ""
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5337,22 +5337,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "_links": {
</span><span class="cx" style="display: block; padding: 0 10px"> "parent": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "href": "http://example.org/index.php?rest_route=/wp/v2/pages/6"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7"
</ins><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 class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "author": 376,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "author": 2,
</ins><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 36747,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 8,
</ins><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "parent": 36746,
- "slug": "36746-revision-v1",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "parent": 7,
+ "slug": "7-revision-v1",
</ins><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?p=36747"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?p=8"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": "REST API Client Fixture: Page"
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5366,7 +5366,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "_links": {
</span><span class="cx" style="display: block; padding: 0 10px"> "parent": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "href": "http://example.org/index.php?rest_route=/wp/v2/pages/36746"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7"
</ins><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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5377,13 +5377,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "author": 2,
</span><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 7,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 8,
</ins><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "parent": 6,
- "slug": "6-revision-v1",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "parent": 7,
+ "slug": "7-revision-v1",
</ins><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?p=7"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?p=8"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": "REST API Client Fixture: Page"
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5398,16 +5398,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> mockedApiResponse.pageAutosaves = [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "author": 376,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "author": 2,
</ins><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 36748,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 9,
</ins><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "parent": 36746,
- "slug": "36746-autosave-v1",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "parent": 7,
+ "slug": "7-autosave-v1",
</ins><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?p=36748"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?p=9"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": ""
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5421,7 +5421,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "_links": {
</span><span class="cx" style="display: block; padding: 0 10px"> "parent": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "href": "http://example.org/index.php?rest_route=/wp/v2/pages/36746"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "href": "http://example.org/index.php?rest_route=/wp/v2/pages/7"
</ins><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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5429,16 +5429,16 @@
</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"> mockedApiResponse.pageAutosave = {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "author": 376,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "author": 2,
</ins><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 36748,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 9,
</ins><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "parent": 36746,
- "slug": "36746-autosave-v1",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "parent": 7,
+ "slug": "7-autosave-v1",
</ins><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?p=36748"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?p=9"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": ""
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5453,11 +5453,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> mockedApiResponse.MediaCollection = [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 8,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 10,
</ins><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?attachment_id=8"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?attachment_id=10"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5464,7 +5464,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "slug": "restapi-client-fixture-attachment",
</span><span class="cx" style="display: block; padding: 0 10px"> "status": "inherit",
</span><span class="cx" style="display: block; padding: 0 10px"> "type": "attachment",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "link": "http://example.org/?attachment_id=8",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "link": "http://example.org/?attachment_id=10",
</ins><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": "REST API Client Fixture: Attachment"
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5490,7 +5490,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "_links": {
</span><span class="cx" style="display: block; padding: 0 10px"> "self": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "href": "http://example.org/index.php?rest_route=/wp/v2/media/8"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "href": "http://example.org/index.php?rest_route=/wp/v2/media/10"
</ins><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"> "collection": [
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5506,7 +5506,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "replies": [
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><span class="cx" style="display: block; padding: 0 10px"> "embeddable": true,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10"
</ins><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 class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5514,11 +5514,11 @@
</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"> mockedApiResponse.MediaModel = {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "id": 8,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "id": 10,
</ins><span class="cx" style="display: block; padding: 0 10px"> "date": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "date_gmt": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "guid": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "rendered": "http://example.org/?attachment_id=8"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "rendered": "http://example.org/?attachment_id=10"
</ins><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "modified": "2017-02-14T00:00:00",
</span><span class="cx" style="display: block; padding: 0 10px"> "modified_gmt": "2017-02-14T00:00:00",
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5525,7 +5525,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "slug": "restapi-client-fixture-attachment",
</span><span class="cx" style="display: block; padding: 0 10px"> "status": "inherit",
</span><span class="cx" style="display: block; padding: 0 10px"> "type": "attachment",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "link": "http://example.org/?attachment_id=8",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "link": "http://example.org/?attachment_id=10",
</ins><span class="cx" style="display: block; padding: 0 10px"> "title": {
</span><span class="cx" style="display: block; padding: 0 10px"> "rendered": "REST API Client Fixture: Attachment"
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span></span></pre>
</div>
</div>
</body>
</html>