<!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>[41006] trunk/tests: Ensure that `wp-api.js` test fixtures do not change with `WP_TESTS_*` constants.</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 { 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/41006">41006</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/41006","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>jnylen0</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2017-07-05 09:29:58 +0000 (Wed, 05 Jul 2017)</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'>Ensure that `wp-api.js` test fixtures do not change with `WP_TESTS_*` constants.

Previously, changing these constants in `wp-tests-config` would cause PHPUnit to regenerate `wp-api-generated.js` with different values.

This commit uses the existing mechanism to also "freeze" all values that would change as a result of changing these constants.

Fixes <a href="https://core.trac.wordpress.org/ticket/41123">#41123</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>

</div>
<div id="patch">
<h3>Diff</h3>
<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  2017-07-05 09:22:14 UTC (rev 41005)
+++ trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php    2017-07-05 09:29:58 UTC (rev 41006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -375,14 +375,43 @@
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><span class="cx" style="display: block; padding: 0 10px">         * This array contains normalized versions of object IDs and other values
</span><span class="cx" style="display: block; padding: 0 10px">         * that can change depending on how PHPUnit is executed.  For details on
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * how they were generated, see #39264.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * how they were generated, see #41123.
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        private static $fixture_replacements = array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                'oembeds.html' => '<blockquote class="wp-embedded-content">...</blockquote>',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         'Schema.name' => 'Test Blog',
+               'Schema.url' => 'http://example.org',
+               'Schema.home' => 'http://example.org',
+               'Schema.routes./._links.self' => 'http://example.org/?rest_route=/',
+               'Schema.routes./oembed/1.0._links.self' => 'http://example.org/?rest_route=/oembed/1.0',
+               'Schema.routes./oembed/1.0/embed._links.self' => 'http://example.org/?rest_route=/oembed/1.0/embed',
+               'Schema.routes./oembed/1.0/proxy._links.self' => 'http://example.org/?rest_route=/oembed/1.0/proxy',
+               'Schema.routes./wp/v2._links.self' => 'http://example.org/?rest_route=/wp/v2',
+               'Schema.routes./wp/v2/posts._links.self' => 'http://example.org/?rest_route=/wp/v2/posts',
+               'Schema.routes./wp/v2/pages._links.self' => 'http://example.org/?rest_route=/wp/v2/pages',
+               'Schema.routes./wp/v2/media._links.self' => 'http://example.org/?rest_route=/wp/v2/media',
+               'Schema.routes./wp/v2/types._links.self' => 'http://example.org/?rest_route=/wp/v2/types',
+               'Schema.routes./wp/v2/statuses._links.self' => 'http://example.org/?rest_route=/wp/v2/statuses',
+               'Schema.routes./wp/v2/taxonomies._links.self' => 'http://example.org/?rest_route=/wp/v2/taxonomies',
+               'Schema.routes./wp/v2/categories._links.self' => 'http://example.org/?rest_route=/wp/v2/categories',
+               'Schema.routes./wp/v2/tags._links.self' => 'http://example.org/?rest_route=/wp/v2/tags',
+               'Schema.routes./wp/v2/users._links.self' => 'http://example.org/?rest_route=/wp/v2/users',
+               'Schema.routes./wp/v2/users/me._links.self' => 'http://example.org/?rest_route=/wp/v2/users/me',
+               'Schema.routes./wp/v2/comments._links.self' => 'http://example.org/?rest_route=/wp/v2/comments',
+               'Schema.routes./wp/v2/settings._links.self' => 'http://example.org/?rest_route=/wp/v2/settings',
+               'oembed.routes./oembed/1.0._links.self' => 'http://example.org/?rest_route=/oembed/1.0',
+               'oembed.routes./oembed/1.0/embed._links.self' => 'http://example.org/?rest_route=/oembed/1.0/embed',
+               'oembed.routes./oembed/1.0/proxy._links.self' => 'http://example.org/?rest_route=/oembed/1.0/proxy',
+               'oembeds.provider_name' => 'Test Blog',
+               'oembeds.provider_url' => 'http://example.org',
+               'oembeds.author_name' => 'Test Blog',
+               'oembeds.author_url' => 'http://example.org',
+               'oembeds.html' => '<blockquote class="wp-embedded-content">...</blockquote>...',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'PostsCollection.0.id' => 3,
</span><span class="cx" style="display: block; padding: 0 10px">                'PostsCollection.0.guid.rendered' => 'http://example.org/?p=3',
</span><span class="cx" style="display: block; padding: 0 10px">                'PostsCollection.0.link' => 'http://example.org/?p=3',
</span><span class="cx" style="display: block; padding: 0 10px">                'PostsCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/posts/3',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'PostsCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/posts',
+               'PostsCollection.0._links.about.0.href' => 'http://example.org/?rest_route=/wp/v2/types/post',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'PostsCollection.0._links.replies.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=3',
</span><span class="cx" style="display: block; padding: 0 10px">                'PostsCollection.0._links.version-history.0.href' => 'http://example.org/?rest_route=/wp/v2/posts/3/revisions',
</span><span class="cx" style="display: block; padding: 0 10px">                'PostsCollection.0._links.wp:attachment.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -406,6 +435,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                'PagesCollection.0.guid.rendered' => 'http://example.org/?page_id=5',
</span><span class="cx" style="display: block; padding: 0 10px">                'PagesCollection.0.link' => 'http://example.org/?page_id=5',
</span><span class="cx" style="display: block; padding: 0 10px">                'PagesCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/pages/5',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'PagesCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/pages',
+               'PagesCollection.0._links.about.0.href' => 'http://example.org/?rest_route=/wp/v2/types/page',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'PagesCollection.0._links.replies.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=5',
</span><span class="cx" style="display: block; padding: 0 10px">                'PagesCollection.0._links.version-history.0.href' => 'http://example.org/?rest_route=/wp/v2/pages/5/revisions',
</span><span class="cx" style="display: block; padding: 0 10px">                'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -426,18 +457,57 @@
</span><span class="cx" style="display: block; padding: 0 10px">                'MediaCollection.0.id' => 7,
</span><span class="cx" style="display: block; padding: 0 10px">                'MediaCollection.0.guid.rendered' => 'http://example.org/?attachment_id=7',
</span><span class="cx" style="display: block; padding: 0 10px">                'MediaCollection.0.link' => 'http://example.org/?attachment_id=7',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'MediaCollection.0.description.rendered' => '<p class="attachment"><!-- <a...><img.../></a> --></p>',
+               'MediaCollection.0.source_url' => 'http://example.org/wp-content/uploads//tmp/canola.jpg',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'MediaCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/media/7',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'MediaCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/media',
+               'MediaCollection.0._links.about.0.href' => 'http://example.org/?rest_route=/wp/v2/types/attachment',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'MediaCollection.0._links.replies.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=7',
</span><span class="cx" style="display: block; padding: 0 10px">                'MediaModel.id' => 7,
</span><span class="cx" style="display: block; padding: 0 10px">                'MediaModel.guid.rendered' => 'http://example.org/?attachment_id=7',
</span><span class="cx" style="display: block; padding: 0 10px">                'MediaModel.link' => 'http://example.org/?attachment_id=7',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'MediaModel.description.rendered' => '<p class="attachment"><!-- <a...><img.../></a> --></p>',
+               'MediaModel.source_url' => 'http://example.org/wp-content/uploads//tmp/canola.jpg',
+               'TypesCollection.post._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/types',
+               'TypesCollection.post._links.wp:items.0.href' => 'http://example.org/?rest_route=/wp/v2/posts',
+               'TypesCollection.page._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/types',
+               'TypesCollection.page._links.wp:items.0.href' => 'http://example.org/?rest_route=/wp/v2/pages',
+               'TypesCollection.attachment._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/types',
+               'TypesCollection.attachment._links.wp:items.0.href' => 'http://example.org/?rest_route=/wp/v2/media',
+               'StatusesCollection.publish._links.archives.0.href' => 'http://example.org/?rest_route=/wp/v2/posts',
+               'StatusesCollection.future._links.archives.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=future',
+               'StatusesCollection.draft._links.archives.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=draft',
+               'StatusesCollection.pending._links.archives.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=pending',
+               'StatusesCollection.private._links.archives.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=private',
+               'StatusesCollection.trash._links.archives.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=trash',
+               'TaxonomiesCollection.category._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/taxonomies',
+               'TaxonomiesCollection.category._links.wp:items.0.href' => 'http://example.org/?rest_route=/wp/v2/categories',
+               'TaxonomiesCollection.post_tag._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/taxonomies',
+               'TaxonomiesCollection.post_tag._links.wp:items.0.href' => 'http://example.org/?rest_route=/wp/v2/tags',
+               'CategoriesCollection.0.link' => 'http://example.org/?cat=1',
+               'CategoriesCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/categories/1',
+               'CategoriesCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/categories',
+               'CategoriesCollection.0._links.about.0.href' => 'http://example.org/?rest_route=/wp/v2/taxonomies/category',
+               'CategoriesCollection.0._links.wp:post_type.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&categories=1',
+               'CategoryModel.link' => 'http://example.org/?cat=1',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'TagsCollection.0.id' => 2,
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'TagsCollection.0.link' => 'http://example.org/?tag=restapi-client-fixture-tag',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'TagsCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/tags/2',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'TagsCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/tags',
+               'TagsCollection.0._links.about.0.href' => 'http://example.org/?rest_route=/wp/v2/taxonomies/post_tag',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'TagsCollection.0._links.wp:post_type.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&tags=2',
</span><span class="cx" style="display: block; padding: 0 10px">                'TagModel.id' => 2,
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'TagModel.link' => 'http://example.org/?tag=restapi-client-fixture-tag',
+               'UsersCollection.0.link' => 'http://example.org/?author=1',
+               'UsersCollection.0.avatar_urls.24' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g',
+               'UsersCollection.0.avatar_urls.48' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=48&d=mm&r=g',
+               'UsersCollection.0.avatar_urls.96' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=96&d=mm&r=g',
+               'UsersCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/users/1',
+               'UsersCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/users',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'UsersCollection.1.id' => 2,
</span><span class="cx" style="display: block; padding: 0 10px">                'UsersCollection.1.link' => 'http://example.org/?author=2',
</span><span class="cx" style="display: block; padding: 0 10px">                'UsersCollection.1._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/users/2',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'UsersCollection.1._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/users',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'UserModel.id' => 2,
</span><span class="cx" style="display: block; padding: 0 10px">                'UserModel.link' => 'http://example.org/?author=2',
</span><span class="cx" style="display: block; padding: 0 10px">                'me.id' => 2,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -446,10 +516,14 @@
</span><span class="cx" style="display: block; padding: 0 10px">                'CommentsCollection.0.post' => 3,
</span><span class="cx" style="display: block; padding: 0 10px">                'CommentsCollection.0.link' => 'http://example.org/?p=3#comment-2',
</span><span class="cx" style="display: block; padding: 0 10px">                'CommentsCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/comments/2',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'CommentsCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/comments',
</ins><span class="cx" style="display: block; padding: 0 10px">                 'CommentsCollection.0._links.up.0.href' => 'http://example.org/?rest_route=/wp/v2/posts/3',
</span><span class="cx" style="display: block; padding: 0 10px">                'CommentModel.id' => 2,
</span><span class="cx" style="display: block; padding: 0 10px">                'CommentModel.post' => 3,
</span><span class="cx" style="display: block; padding: 0 10px">                'CommentModel.link' => 'http://example.org/?p=3#comment-2',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                'settings.title' => 'Test Blog',
+               'settings.url' => 'http://example.org',
+               'settings.email' => 'admin@example.org',
</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">        private function normalize_fixture( $data, $path ) {
</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    2017-07-05 09:22:14 UTC (rev 41005)
+++ trunk/tests/qunit/fixtures/wp-api-generated.js      2017-07-05 09:29:58 UTC (rev 41006)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3510,7 +3510,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">     "type": "rich",
</span><span class="cx" style="display: block; padding: 0 10px">     "width": 600,
</span><span class="cx" style="display: block; padding: 0 10px">     "height": 338,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-    "html": "<blockquote class=\"wp-embedded-content\">...</blockquote>"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+    "html": "<blockquote class=\"wp-embedded-content\">...</blockquote>..."
</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"> mockedApiResponse.oembedProxy = {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3901,7 +3901,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         "template": "",
</span><span class="cx" style="display: block; padding: 0 10px">         "meta": [],
</span><span class="cx" style="display: block; padding: 0 10px">         "description": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-            "rendered": "<p class=\"attachment\"><a href='http://example.org/wp-content/uploads//tmp/canola.jpg'><img width=\"1\" height=\"1\" src=\"http://example.org/wp-content/uploads//tmp/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" /></a></p>\n"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+            "rendered": "<p class=\"attachment\"><!-- <a...><img.../></a> --></p>"
</ins><span class="cx" style="display: block; padding: 0 10px">         },
</span><span class="cx" style="display: block; padding: 0 10px">         "caption": {
</span><span class="cx" style="display: block; padding: 0 10px">             "rendered": "<p>A sample caption</p>\n"
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3960,7 +3960,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">     "template": "",
</span><span class="cx" style="display: block; padding: 0 10px">     "meta": [],
</span><span class="cx" style="display: block; padding: 0 10px">     "description": {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        "rendered": "<p class=\"attachment\"><a href='http://example.org/wp-content/uploads//tmp/canola.jpg'><img width=\"1\" height=\"1\" src=\"http://example.org/wp-content/uploads//tmp/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" /></a></p>\n"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        "rendered": "<p class=\"attachment\"><!-- <a...><img.../></a> --></p>"
</ins><span class="cx" style="display: block; padding: 0 10px">     },
</span><span class="cx" style="display: block; padding: 0 10px">     "caption": {
</span><span class="cx" style="display: block; padding: 0 10px">         "rendered": "<p>A sample caption</p>\n"
</span></span></pre>
</div>
</div>

</body>
</html>