<!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>[43751] branches/5.0: Blocks: Introduce the block parser.</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/43751">43751</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/43751","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>pento</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2018-10-18 04:39:40 +0000 (Thu, 18 Oct 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'>Blocks: Introduce the block parser.
The `WP_Block_Parser` class, and the accompanying `parse_blocks()` helper function, can be used to parse an array of blocks out of a content string.
`WP_Block_Parser` is copied from the `@wordpress/block-serialization-default-parser` package. To ensure it stays in sync with the JavaScript parser, changes should be implemented in the package first, then the package version should be upgraded to include the changes.
See <a href="https://core.trac.wordpress.org/ticket/45109">#45109</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#branches50srcwpincludesblocksphp">branches/5.0/src/wp-includes/blocks.php</a></li>
<li><a href="#branches50srcwpsettingsphp">branches/5.0/src/wp-settings.php</a></li>
<li><a href="#branches50toolswebpackpackagesjs">branches/5.0/tools/webpack/packages.js</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#branches50srcwpincludesclasswpblockparserphp">branches/5.0/src/wp-includes/class-wp-block-parser.php</a></li>
<li>branches/5.0/tests/phpunit/data/blocks/fixtures/</li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__4invalidstartingletterhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__4invalidstartingletterjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__4invalidstartingletterparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__4invalidstartingletterserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__archiveshtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__archivesjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__archivesparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__archivesserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__archives__showPostCountshtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__archives__showPostCountsjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__archives__showPostCountsparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__archives__showPostCountsserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__audiohtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__audiojson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__audioparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__audioserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__blockhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__blockjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__blockparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__blockserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__button__centerhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__button__centerjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__button__centerparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__button__centerserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__categorieshtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__categoriesjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__categoriesparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__categoriesserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__codehtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__codejson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__codeparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__codeserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__columnhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__columnjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__columnparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__columnserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__columnshtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__columnsjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__columnsparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__columnsserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__coverimagehtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__coverimagejson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__coverimageparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__coverimageserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__embedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__embedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__embedparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__embedserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__newwindowhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__newwindowjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__newwindowparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__newwindowserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__nodownloadbuttonhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__nodownloadbuttonjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__nodownloadbuttonparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__nodownloadbuttonserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__notextlinkhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__notextlinkjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__notextlinkparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__file__notextlinkserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__freeformhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__freeformjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__freeformparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__freeformserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__freeform__undelimitedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__freeform__undelimitedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__freeform__undelimitedparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__freeform__undelimitedserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__galleryhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__galleryjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__galleryparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__galleryserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__gallery__columnshtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__gallery__columnsjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__gallery__columnsparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__gallery__columnsserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__heading__h2emhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__heading__h2emjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__heading__h2emparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__heading__h2emserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__heading__h2html">branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__heading__h2json">branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__heading__h2parsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__heading__h2serializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__htmlhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__htmljson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__htmlparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__htmlserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__imagehtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__imagejson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__imageparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__imageserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__attachmentlinkhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__attachmentlinkjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__attachmentlinkparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__attachmentlinkserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__centercaptionhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__centercaptionjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__centercaptionparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__centercaptionserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__customlinkhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__customlinkjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__customlinkparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__customlinkserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__medialinkhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__medialinkjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__medialinkparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__image__medialinkserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__invalidCapitalshtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__invalidCapitalsjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__invalidCapitalsparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__invalidCapitalsserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__invalidspecialhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__invalidspecialjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__invalidspecialparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__invalidspecialserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestcommentshtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestcommentsjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestcommentsparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestcommentsserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestpostshtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestpostsjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestpostsparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestpostsserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestposts__displayPostDatehtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestposts__displayPostDatejson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestposts__displayPostDateparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__latestposts__displayPostDateserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__list__ulhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__list__uljson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__list__ulparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__list__ulserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__missinghtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__missingjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__missingparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__missingserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__morehtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__morejson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__moreparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__moreserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__more__customtextteaserhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__more__customtextteaserjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__more__customtextteaserparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__more__customtextteaserserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__nextpagehtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__nextpagejson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__nextpageparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__nextpageserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__paragraph__alignrighthtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__paragraph__alignrightjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__paragraph__alignrightparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__paragraph__alignrightserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__paragraph__deprecatedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__paragraph__deprecatedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__paragraph__deprecatedparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__paragraph__deprecatedserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__preformattedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__preformattedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__preformattedparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__preformattedserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__pullquotehtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__pullquotejson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__pullquoteparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__pullquoteserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__pullquote__multiparagraphhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__pullquote__multiparagraphjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__pullquote__multiparagraphparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__pullquote__multiparagraphserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__quote__style1html">branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__quote__style1json">branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__quote__style1parsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__quote__style1serializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__quote__style2html">branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__quote__style2json">branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__quote__style2parsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__quote__style2serializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__separatorhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__separatorjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__separatorparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__separatorserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__shortcodehtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__shortcodejson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__shortcodeparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__shortcodeserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__spacerhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__spacerjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__spacerparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__spacerserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__subheadhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__subheadjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__subheadparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__subheadserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__tablehtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__tablejson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__tableparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__tableserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__textcolumnshtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__textcolumnsjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__textcolumnsparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__textcolumnsserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__text__convertstoparagraphhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__text__convertstoparagraphjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__text__convertstoparagraphparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__text__convertstoparagraphserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__versehtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__versejson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__verseparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__verseserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.serialized.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__videohtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.html</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__videojson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__videoparsedjson">branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.parsed.json</a></li>
<li><a href="#branches50testsphpunitdatablocksfixturescore__videoserializedhtml">branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.serialized.html</a></li>
<li><a href="#branches50testsphpunittestsblocksblockparserphp">branches/5.0/tests/phpunit/tests/blocks/block-parser.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="branches50srcwpincludesblocksphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: branches/5.0/src/wp-includes/blocks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/src/wp-includes/blocks.php 2018-10-18 04:14:41 UTC (rev 43750)
+++ branches/5.0/src/wp-includes/blocks.php 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -112,3 +112,40 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return $dynamic_block_names;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+/**
+ * Parses blocks out of a content string.
+ *
+ * @since 5.0.0
+ *
+ * @param string $content Post content.
+ * @return array Array of parsed block objects.
+ */
+function parse_blocks( $content ) {
+ /*
+ * If there are no blocks in the content, return a single block, rather
+ * than wasting time trying to parse the string.
+ */
+ if ( ! has_blocks( $content ) ) {
+ return array(
+ array(
+ 'blockName' => null,
+ 'attrs' => array(),
+ 'innerBlocks' => array(),
+ 'innerHTML' => $content,
+ ),
+ );
+ }
+
+ /**
+ * Filter to allow plugins to replace the server-side block parser
+ *
+ * @since 5.0.0
+ *
+ * @param string $parser_class Name of block parser class
+ */
+ $parser_class = apply_filters( 'block_parser_class', 'WP_Block_Parser' );
+
+ $parser = new $parser_class();
+ return $parser->parse( $content );
+}
</ins></span></pre></div>
<a id="branches50srcwpincludesclasswpblockparserphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/src/wp-includes/class-wp-block-parser.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/src/wp-includes/class-wp-block-parser.php (rev 0)
+++ branches/5.0/src/wp-includes/class-wp-block-parser.php 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,473 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+
+/**
+ * Class WP_Block_Parser_Block
+ *
+ * Holds the block structure in memory
+ *
+ * @since 3.8.0
+ */
+class WP_Block_Parser_Block {
+ /**
+ * Name of block
+ *
+ * @example "core/paragraph"
+ *
+ * @since 3.8.0
+ * @var string
+ */
+ public $blockName;
+
+ /**
+ * Optional set of attributes from block comment delimiters
+ *
+ * @example null
+ * @example array( 'columns' => 3 )
+ *
+ * @since 3.8.0
+ * @var array|null
+ */
+ public $attrs;
+
+ /**
+ * List of inner blocks (of this same class)
+ *
+ * @since 3.8.0
+ * @var WP_Block_Parser_Block[]
+ */
+ public $innerBlocks;
+
+ /**
+ * Resultant HTML from inside block comment delimiters
+ * after removing inner blocks
+ *
+ * @example "...Just <!-- wp:test /--> testing..." -> "Just testing..."
+ *
+ * @since 3.8.0
+ * @var string
+ */
+ public $innerHTML;
+
+ function __construct( $name, $attrs, $innerBlocks, $innerHTML ) {
+ $this->blockName = $name;
+ $this->attrs = $attrs;
+ $this->innerBlocks = $innerBlocks;
+ $this->innerHTML = $innerHTML;
+ }
+}
+
+/**
+ * Class WP_Block_Parser_Frame
+ *
+ * Holds partial blocks in memory while parsing
+ *
+ * @internal
+ * @since 3.8.0
+ */
+class WP_Block_Parser_Frame {
+ /**
+ * Full or partial block
+ *
+ * @since 3.8.0
+ * @var WP_Block_Parser_Block
+ */
+ public $block;
+
+ /**
+ * Byte offset into document for start of parse token
+ *
+ * @since 3.8.0
+ * @var int
+ */
+ public $token_start;
+
+ /**
+ * Byte length of entire parse token string
+ *
+ * @since 3.8.0
+ * @var int
+ */
+ public $token_length;
+
+ /**
+ * Byte offset into document for after parse token ends
+ * (used during reconstruction of stack into parse production)
+ *
+ * @since 3.8.0
+ * @var int
+ */
+ public $prev_offset;
+
+ /**
+ * Byte offset into document where leading HTML before token starts
+ *
+ * @since 3.8.0
+ * @var int
+ */
+ public $leading_html_start;
+
+ function __construct( $block, $token_start, $token_length, $prev_offset = null, $leading_html_start = null ) {
+ $this->block = $block;
+ $this->token_start = $token_start;
+ $this->token_length = $token_length;
+ $this->prev_offset = isset( $prev_offset ) ? $prev_offset : $token_start + $token_length;
+ $this->leading_html_start = $leading_html_start;
+ }
+}
+
+/**
+ * Class WP_Block_Parser
+ *
+ * Parses a document and constructs a list of parsed block objects
+ *
+ * @since 3.8.0
+ * @since 4.0.0 returns arrays not objects, all attributes are arrays
+ */
+class WP_Block_Parser {
+ /**
+ * Input document being parsed
+ *
+ * @example "Pre-text\n<!-- wp:paragraph -->This is inside a block!<!-- /wp:paragraph -->"
+ *
+ * @since 3.8.0
+ * @var string
+ */
+ public $document;
+
+ /**
+ * Tracks parsing progress through document
+ *
+ * @since 3.8.0
+ * @var int
+ */
+ public $offset;
+
+ /**
+ * List of parsed blocks
+ *
+ * @since 3.8.0
+ * @var WP_Block_Parser_Block[]
+ */
+ public $output;
+
+ /**
+ * Stack of partially-parsed structures in memory during parse
+ *
+ * @since 3.8.0
+ * @var WP_Block_Parser_Frame[]
+ */
+ public $stack;
+
+ /**
+ * Parses a document and returns a list of block structures
+ *
+ * When encountering an invalid parse will return a best-effort
+ * parse. In contrast to the specification parser this does not
+ * return an error on invalid inputs.
+ *
+ * @since 3.8.0
+ *
+ * @param string $document
+ * @return WP_Block_Parser_Block[]
+ */
+ function parse( $document ) {
+ $this->document = $document;
+ $this->offset = 0;
+ $this->output = array();
+ $this->stack = array();
+
+ do {
+ // twiddle our thumbs
+ } while ( $this->proceed() );
+
+ return $this->output;
+ }
+
+ /**
+ * Processes the next token from the input document
+ * and returns whether to proceed eating more tokens
+ *
+ * This is the "next step" function that essentially
+ * takes a token as its input and decides what to do
+ * with that token before descending deeper into a
+ * nested block tree or continuing along the document
+ * or breaking out of a level of nesting.
+ *
+ * @internal
+ * @since 3.8.0
+ * @return bool
+ */
+ function proceed() {
+ $next_token = $this->next_token();
+ list( $token_type, $block_name, $attrs, $start_offset, $token_length ) = $next_token;
+ $stack_depth = count( $this->stack );
+
+ // we may have some HTML soup before the next block
+ $leading_html_start = $start_offset > $this->offset ? $this->offset : null;
+
+ switch ( $token_type ) {
+ case 'no-more-tokens':
+ // if not in a block then flush output
+ if ( 0 === $stack_depth ) {
+ $this->add_freeform();
+ return false;
+ }
+
+ /*
+ * Otherwise we have a problem
+ * This is an error
+ *
+ * we have options
+ * - treat it all as freeform text
+ * - assume an implicit closer (easiest when not nesting)
+ */
+
+ // for the easy case we'll assume an implicit closer
+ if ( 1 === $stack_depth ) {
+ $this->add_block_from_stack();
+ return false;
+ }
+
+ /*
+ * for the nested case where it's more difficult we'll
+ * have to assume that multiple closers are missing
+ * and so we'll collapse the whole stack piecewise
+ */
+ while ( 0 < count( $this->stack ) ) {
+ $this->add_block_from_stack();
+ }
+ return false;
+
+ case 'void-block':
+ /*
+ * easy case is if we stumbled upon a void block
+ * in the top-level of the document
+ */
+ if ( 0 === $stack_depth ) {
+ if ( isset( $leading_html_start ) ) {
+ $this->output[] = (array) self::freeform( substr(
+ $this->document,
+ $leading_html_start,
+ $start_offset - $leading_html_start
+ ) );
+ }
+
+ $this->output[] = (array) new WP_Block_Parser_Block( $block_name, $attrs, array(), '' );
+ $this->offset = $start_offset + $token_length;
+ return true;
+ }
+
+ // otherwise we found an inner block
+ $this->add_inner_block(
+ new WP_Block_Parser_Block( $block_name, $attrs, array(), '' ),
+ $start_offset,
+ $token_length
+ );
+ $this->offset = $start_offset + $token_length;
+ return true;
+
+ case 'block-opener':
+ // track all newly-opened blocks on the stack
+ array_push( $this->stack, new WP_Block_Parser_Frame(
+ new WP_Block_Parser_Block( $block_name, $attrs, array(), '' ),
+ $start_offset,
+ $token_length,
+ $start_offset + $token_length,
+ $leading_html_start
+ ) );
+ $this->offset = $start_offset + $token_length;
+ return true;
+
+ case 'block-closer':
+ /*
+ * if we're missing an opener we're in trouble
+ * This is an error
+ */
+ if ( 0 === $stack_depth ) {
+ /*
+ * we have options
+ * - assume an implicit opener
+ * - assume _this_ is the opener
+ * - give up and close out the document
+ */
+ $this->add_freeform();
+ return false;
+ }
+
+ // if we're not nesting then this is easy - close the block
+ if ( 1 === $stack_depth ) {
+ $this->add_block_from_stack( $start_offset );
+ $this->offset = $start_offset + $token_length;
+ return true;
+ }
+
+ /*
+ * otherwise we're nested and we have to close out the current
+ * block and add it as a new innerBlock to the parent
+ */
+ $stack_top = array_pop( $this->stack );
+ $stack_top->block->innerHTML .= substr( $this->document, $stack_top->prev_offset, $start_offset - $stack_top->prev_offset );
+ $stack_top->prev_offset = $start_offset + $token_length;
+
+ $this->add_inner_block(
+ $stack_top->block,
+ $stack_top->token_start,
+ $stack_top->token_length,
+ $start_offset + $token_length
+ );
+ $this->offset = $start_offset + $token_length;
+ return true;
+
+ default:
+ // This is an error
+ $this->add_freeform();
+ return false;
+ }
+ }
+
+ /**
+ * Scans the document from where we last left off
+ * and finds the next valid token to parse if it exists
+ *
+ * Returns the type of the find: kind of find, block information, attributes
+ *
+ * @internal
+ * @since 3.8.0
+ * @return array
+ */
+ function next_token() {
+ $matches = null;
+
+ /*
+ * aye the magic
+ * we're using a single RegExp to tokenize the block comment delimiters
+ * we're also using a trick here because the only difference between a
+ * block opener and a block closer is the leading `/` before `wp:` (and
+ * a closer has no attributes). we can trap them both and process the
+ * match back in PHP to see which one it was.
+ */
+ $has_match = preg_match(
+ '/<!--\s+(?<closer>\/)?wp:(?<namespace>[a-z][a-z0-9_-]*\/)?(?<name>[a-z][a-z0-9_-]*)\s+(?<attrs>{(?:(?!}\s+-->).)+?}\s+)?(?<void>\/)?-->/s',
+ $this->document,
+ $matches,
+ PREG_OFFSET_CAPTURE,
+ $this->offset
+ );
+
+ // we have no more tokens
+ if ( 0 === $has_match ) {
+ return array( 'no-more-tokens', null, null, null, null );
+ }
+
+ list( $match, $started_at ) = $matches[ 0 ];
+
+ $length = strlen( $match );
+ $is_closer = isset( $matches[ 'closer' ] ) && -1 !== $matches[ 'closer' ][ 1 ];
+ $is_void = isset( $matches[ 'void' ] ) && -1 !== $matches[ 'void' ][ 1 ];
+ $namespace = $matches[ 'namespace' ];
+ $namespace = ( isset( $namespace ) && -1 !== $namespace[ 1 ] ) ? $namespace[ 0 ] : 'core/';
+ $name = $namespace . $matches[ 'name' ][ 0 ];
+ $has_attrs = isset( $matches[ 'attrs' ] ) && -1 !== $matches[ 'attrs' ][ 1 ];
+
+ /*
+ * Fun fact! It's not trivial in PHP to create "an empty associative array" since all arrays
+ * are associative arrays. If we use `array()` we get a JSON `[]`
+ */
+ $attrs = $has_attrs
+ ? json_decode( $matches[ 'attrs' ][ 0 ], /* as-associative */ true )
+ : json_decode( '{}', /* don't ask why, just verify in PHP */ false );
+
+ /*
+ * This state isn't allowed
+ * This is an error
+ */
+ if ( $is_closer && ( $is_void || $has_attrs ) ) {
+ // we can ignore them since they don't hurt anything
+ }
+
+ if ( $is_void ) {
+ return array( 'void-block', $name, $attrs, $started_at, $length );
+ }
+
+ if ( $is_closer ) {
+ return array( 'block-closer', $name, null, $started_at, $length );
+ }
+
+ return array( 'block-opener', $name, $attrs, $started_at, $length );
+ }
+
+ /**
+ * Returns a new block object for freeform HTML
+ *
+ * @internal
+ * @since 3.9.0
+ *
+ * @param string $innerHTML HTML content of block
+ * @return WP_Block_Parser_Block freeform block object
+ */
+ static function freeform( $innerHTML ) {
+ return new WP_Block_Parser_Block( null, array(), array(), $innerHTML );
+ }
+
+ /**
+ * Pushes a length of text from the input document
+ * to the output list as a freeform block
+ *
+ * @internal
+ * @since 3.8.0
+ * @param null $length how many bytes of document text to output
+ */
+ function add_freeform( $length = null ) {
+ $length = $length ? $length : strlen( $this->document ) - $this->offset;
+
+ if ( 0 === $length ) {
+ return;
+ }
+
+ $this->output[] = (array) self::freeform( substr( $this->document, $this->offset, $length ) );
+ }
+
+ /**
+ * Given a block structure from memory pushes
+ * a new block to the output list
+ *
+ * @internal
+ * @since 3.8.0
+ * @param WP_Block_Parser_Block $block the block to add to the output
+ * @param int $token_start byte offset into the document where the first token for the block starts
+ * @param int $token_length byte length of entire block from start of opening token to end of closing token
+ * @param int|null $last_offset last byte offset into document if continuing form earlier output
+ */
+ function add_inner_block( WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = null ) {
+ $parent = $this->stack[ count( $this->stack ) - 1 ];
+ $parent->block->innerBlocks[] = $block;
+ $parent->block->innerHTML .= substr( $this->document, $parent->prev_offset, $token_start - $parent->prev_offset );
+ $parent->prev_offset = $last_offset ? $last_offset : $token_start + $token_length;
+ }
+
+ /**
+ * Pushes the top block from the parsing stack to the output list
+ *
+ * @internal
+ * @since 3.8.0
+ * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML
+ */
+ function add_block_from_stack( $end_offset = null ) {
+ $stack_top = array_pop( $this->stack );
+ $prev_offset = $stack_top->prev_offset;
+
+ $stack_top->block->innerHTML .= isset( $end_offset )
+ ? substr( $this->document, $prev_offset, $end_offset - $prev_offset )
+ : substr( $this->document, $prev_offset );
+
+ if ( isset( $stack_top->leading_html_start ) ) {
+ $this->output[] = (array) self::freeform( substr(
+ $this->document,
+ $stack_top->leading_html_start,
+ $stack_top->token_start - $stack_top->leading_html_start
+ ) );
+ }
+
+ $this->output[] = (array) $stack_top->block;
+ }
+}
</ins></span></pre></div>
<a id="branches50srcwpsettingsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: branches/5.0/src/wp-settings.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/src/wp-settings.php 2018-10-18 04:14:41 UTC (rev 43750)
+++ branches/5.0/src/wp-settings.php 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -245,6 +245,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> require( ABSPATH . WPINC . '/rest-api/search/class-wp-rest-post-search-handler.php' );
</span><span class="cx" style="display: block; padding: 0 10px"> require( ABSPATH . WPINC . '/class-wp-block-type.php' );
</span><span class="cx" style="display: block; padding: 0 10px"> require( ABSPATH . WPINC . '/class-wp-block-type-registry.php' );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+require( ABSPATH . WPINC . '/class-wp-block-parser.php' );
</ins><span class="cx" style="display: block; padding: 0 10px"> require( ABSPATH . WPINC . '/blocks.php' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $GLOBALS['wp_embed'] = new WP_Embed();
</span></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__4invalidstartingletterhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/4-invalid /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__4invalidstartingletterjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/freeform",
+ "isValid": true,
+ "attributes": {
+ "content": "<p><!-- wp:core/4-invalid /--></p>"
+ },
+ "innerBlocks": [],
+ "originalContent": "<p><!-- wp:core/4-invalid /--></p>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__4invalidstartingletterparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,8 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "<!-- wp:core/4-invalid /-->\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__4invalidstartingletterserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__4-invalid-starting-letter.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<p><!-- wp:core/4-invalid /--></p>
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__archiveshtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:archives {"displayAsDropdown":false,"showPostCounts":false} /-->
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__archivesjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,13 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/archives",
+ "isValid": true,
+ "attributes": {
+ "displayAsDropdown": false,
+ "showPostCounts": false
+ },
+ "innerBlocks": [],
+ "originalContent": ""
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__archivesparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,11 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/archives",
+ "attrs": {
+ "displayAsDropdown": false,
+ "showPostCounts": false
+ },
+ "innerBlocks": [],
+ "innerHTML": ""
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__archivesserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:archives /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__archives__showPostCountshtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:archives {"displayAsDropdown":false,"showPostCounts":true} /-->
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__archives__showPostCountsjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,13 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/archives",
+ "isValid": true,
+ "attributes": {
+ "displayAsDropdown": false,
+ "showPostCounts": true
+ },
+ "innerBlocks": [],
+ "originalContent": ""
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__archives__showPostCountsparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,11 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/archives",
+ "attrs": {
+ "displayAsDropdown": false,
+ "showPostCounts": true
+ },
+ "innerBlocks": [],
+ "innerHTML": ""
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__archives__showPostCountsserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__archives__showPostCounts.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:archives {"showPostCounts":true} /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__audiohtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,5 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/audio {"align":"right"} -->
+<figure class="wp-block-audio alignright">
+ <audio controls="" src="https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3"></audio>
+</figure>
+<!-- /wp:core/audio -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__audiojson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/audio",
+ "isValid": true,
+ "attributes": {
+ "src": "https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3",
+ "caption": "",
+ "autoplay": false,
+ "loop": false,
+ "align": "right"
+ },
+ "innerBlocks": [],
+ "originalContent": "<figure class=\"wp-block-audio alignright\">\n <audio controls=\"\" src=\"https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3\"></audio>\n</figure>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__audioparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/audio",
+ "attrs": {
+ "align": "right"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<figure class=\"wp-block-audio alignright\">\n <audio controls=\"\" src=\"https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3\"></audio>\n</figure>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__audioserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__audio.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:audio {"align":"right"} -->
+<figure class="wp-block-audio alignright"><audio controls src="https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3"></audio></figure>
+<!-- /wp:audio -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__blockhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/block {"ref":123} /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__blockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/block",
+ "isValid": true,
+ "attributes": {
+ "ref": 123
+ },
+ "innerBlocks": [],
+ "originalContent": ""
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__blockparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/block",
+ "attrs": {
+ "ref": 123
+ },
+ "innerBlocks": [],
+ "innerHTML": ""
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__blockserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__block.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:block {"ref":123} /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__button__centerhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/button {"align":"center"} -->
+<div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://github.com/WordPress/gutenberg">Help build Gutenberg</a></div>
+<!-- /wp:core/button -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__button__centerjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/button",
+ "isValid": true,
+ "attributes": {
+ "url": "https://github.com/WordPress/gutenberg",
+ "text": "Help build Gutenberg",
+ "align": "center"
+ },
+ "innerBlocks": [],
+ "originalContent": "<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https://github.com/WordPress/gutenberg\">Help build Gutenberg</a></div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__button__centerparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/button",
+ "attrs": {
+ "align": "center"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https://github.com/WordPress/gutenberg\">Help build Gutenberg</a></div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__button__centerserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__button__center.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:button {"align":"center"} -->
+<div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://github.com/WordPress/gutenberg">Help build Gutenberg</a></div>
+<!-- /wp:button -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__categorieshtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/categories {"showPostCounts":false,"displayAsDropdown":false,"showHierarchy":false} /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__categoriesjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/categories",
+ "isValid": true,
+ "attributes": {
+ "showPostCounts": false,
+ "displayAsDropdown": false,
+ "showHierarchy": false
+ },
+ "innerBlocks": [],
+ "originalContent": ""
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__categoriesparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,18 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/categories",
+ "attrs": {
+ "showPostCounts": false,
+ "displayAsDropdown": false,
+ "showHierarchy": false
+ },
+ "innerBlocks": [],
+ "innerHTML": ""
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__categoriesserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__categories.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:categories /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__codehtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,5 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/code -->
+<pre class="wp-block-code"><code>export default function MyButton() {
+ return <Button>Click Me!</Button>;
+}</code></pre>
+<!-- /wp:core/code -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__codejson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/code",
+ "isValid": true,
+ "attributes": {
+ "content": "export default function MyButton() {\n\treturn <Button>Click Me!</Button>;\n}"
+ },
+ "innerBlocks": [],
+ "originalContent": "<pre class=\"wp-block-code\"><code>export default function MyButton() {\n\treturn <Button>Click Me!</Button>;\n}</code></pre>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__codeparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/code",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<pre class=\"wp-block-code\"><code>export default function MyButton() {\n\treturn <Button>Click Me!</Button>;\n}</code></pre>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__codeserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__code.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,5 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:code -->
+<pre class="wp-block-code"><code>export default function MyButton() {
+ return <Button>Click Me!</Button>;
+}</code></pre>
+<!-- /wp:code -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__columnhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,10 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:column -->
+<div class="wp-block-column">
+ <!-- wp:paragraph -->
+ <p>Column One, Paragraph One</p>
+ <!-- /wp:paragraph -->
+ <!-- wp:paragraph -->
+ <p>Column One, Paragraph Two</p>
+ <!-- /wp:paragraph -->
+</div>
+<!-- /wp:columns -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__columnjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,33 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/column",
+ "isValid": true,
+ "attributes": {},
+ "innerBlocks": [
+ {
+ "clientId": "_clientId_0",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "content": "Column One, Paragraph One",
+ "dropCap": false
+ },
+ "innerBlocks": [],
+ "originalContent": "<p>Column One, Paragraph One</p>"
+ },
+ {
+ "clientId": "_clientId_1",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "content": "Column One, Paragraph Two",
+ "dropCap": false
+ },
+ "innerBlocks": [],
+ "originalContent": "<p>Column One, Paragraph Two</p>"
+ }
+ ],
+ "originalContent": "<div class=\"wp-block-column\">\n\t\n\t\n</div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__columnparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,27 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/column",
+ "attrs": {},
+ "innerBlocks": [
+ {
+ "blockName": "core/paragraph",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n\t<p>Column One, Paragraph One</p>\n\t"
+ },
+ {
+ "blockName": "core/paragraph",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n\t<p>Column One, Paragraph Two</p>\n\t"
+ }
+ ],
+ "innerHTML": "\n<div class=\"wp-block-column\">\n\t\n\t\n</div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__columnserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__column.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,9 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:column -->
+<div class="wp-block-column"><!-- wp:paragraph -->
+<p>Column One, Paragraph One</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:paragraph -->
+<p>Column One, Paragraph Two</p>
+<!-- /wp:paragraph --></div>
+<!-- /wp:column -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__columnshtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,24 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:columns {"columns":3} -->
+<div class="wp-block-columns has-3-columns">
+ <!-- wp:column -->
+ <div class="wp-block-column">
+ <!-- wp:paragraph -->
+ <p>Column One, Paragraph One</p>
+ <!-- /wp:paragraph -->
+ <!-- wp:paragraph -->
+ <p>Column One, Paragraph Two</p>
+ <!-- /wp:paragraph -->
+ </div>
+ <!-- /wp:column -->
+ <!-- wp:column -->
+ <div class="wp-block-column">
+ <!-- wp:paragraph -->
+ <p>Column Two, Paragraph One</p>
+ <!-- /wp:paragraph -->
+ <!-- wp:paragraph -->
+ <p>Column Three, Paragraph One</p>
+ <!-- /wp:paragraph -->
+ </div>
+ <!-- /wp:column -->
+</div>
+<!-- /wp:columns -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__columnsjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,75 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/columns",
+ "isValid": true,
+ "attributes": {
+ "columns": 3
+ },
+ "innerBlocks": [
+ {
+ "clientId": "_clientId_0",
+ "name": "core/column",
+ "isValid": true,
+ "attributes": {},
+ "innerBlocks": [
+ {
+ "clientId": "_clientId_0",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "content": "Column One, Paragraph One",
+ "dropCap": false
+ },
+ "innerBlocks": [],
+ "originalContent": "<p>Column One, Paragraph One</p>"
+ },
+ {
+ "clientId": "_clientId_1",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "content": "Column One, Paragraph Two",
+ "dropCap": false
+ },
+ "innerBlocks": [],
+ "originalContent": "<p>Column One, Paragraph Two</p>"
+ }
+ ],
+ "originalContent": "<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>"
+ },
+ {
+ "clientId": "_clientId_1",
+ "name": "core/column",
+ "isValid": true,
+ "attributes": {},
+ "innerBlocks": [
+ {
+ "clientId": "_clientId_0",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "content": "Column Two, Paragraph One",
+ "dropCap": false
+ },
+ "innerBlocks": [],
+ "originalContent": "<p>Column Two, Paragraph One</p>"
+ },
+ {
+ "clientId": "_clientId_1",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "content": "Column Three, Paragraph One",
+ "dropCap": false
+ },
+ "innerBlocks": [],
+ "originalContent": "<p>Column Three, Paragraph One</p>"
+ }
+ ],
+ "originalContent": "<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>"
+ }
+ ],
+ "originalContent": "<div class=\"wp-block-columns has-3-columns\">\n\t\n\t\n</div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__columnsparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,55 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/columns",
+ "attrs": {
+ "columns": 3
+ },
+ "innerBlocks": [
+ {
+ "blockName": "core/column",
+ "attrs": {},
+ "innerBlocks": [
+ {
+ "blockName": "core/paragraph",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n\t\t<p>Column One, Paragraph One</p>\n\t\t"
+ },
+ {
+ "blockName": "core/paragraph",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n\t\t<p>Column One, Paragraph Two</p>\n\t\t"
+ }
+ ],
+ "innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>\n\t"
+ },
+ {
+ "blockName": "core/column",
+ "attrs": {},
+ "innerBlocks": [
+ {
+ "blockName": "core/paragraph",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n\t\t<p>Column Two, Paragraph One</p>\n\t\t"
+ },
+ {
+ "blockName": "core/paragraph",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n\t\t<p>Column Three, Paragraph One</p>\n\t\t"
+ }
+ ],
+ "innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>\n\t"
+ }
+ ],
+ "innerHTML": "\n<div class=\"wp-block-columns has-3-columns\">\n\t\n\t\n</div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__columnsserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__columns.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,21 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:columns {"columns":3} -->
+<div class="wp-block-columns has-3-columns"><!-- wp:column -->
+<div class="wp-block-column"><!-- wp:paragraph -->
+<p>Column One, Paragraph One</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:paragraph -->
+<p>Column One, Paragraph Two</p>
+<!-- /wp:paragraph --></div>
+<!-- /wp:column -->
+
+<!-- wp:column -->
+<div class="wp-block-column"><!-- wp:paragraph -->
+<p>Column Two, Paragraph One</p>
+<!-- /wp:paragraph -->
+
+<!-- wp:paragraph -->
+<p>Column Three, Paragraph One</p>
+<!-- /wp:paragraph --></div>
+<!-- /wp:column --></div>
+<!-- /wp:columns -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__coverimagehtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,5 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/cover-image {"url":"https://cldup.com/uuUqE_dXzy.jpg","dimRatio":40} -->
+<div class="wp-block-cover-image has-background-dim-40 has-background-dim" style="background-image:url(https://cldup.com/uuUqE_dXzy.jpg)">
+ <p class="wp-block-cover-image-text">Guten Berg!</p>
+</div>
+<!-- /wp:core/cover-image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__coverimagejson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/cover-image",
+ "isValid": true,
+ "attributes": {
+ "title": "Guten Berg!",
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
+ "contentAlign": "center",
+ "hasParallax": false,
+ "dimRatio": 40
+ },
+ "innerBlocks": [],
+ "originalContent": "<div class=\"wp-block-cover-image has-background-dim-40 has-background-dim\" style=\"background-image:url(https://cldup.com/uuUqE_dXzy.jpg)\">\n <p class=\"wp-block-cover-image-text\">Guten Berg!</p>\n</div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__coverimageparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,17 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/cover-image",
+ "attrs": {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
+ "dimRatio": 40
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<div class=\"wp-block-cover-image has-background-dim-40 has-background-dim\" style=\"background-image:url(https://cldup.com/uuUqE_dXzy.jpg)\">\n <p class=\"wp-block-cover-image-text\">Guten Berg!</p>\n</div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__coverimageserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__cover-image.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:cover-image {"url":"https://cldup.com/uuUqE_dXzy.jpg","dimRatio":40} -->
+<div class="wp-block-cover-image has-background-dim-40 has-background-dim" style="background-image:url(https://cldup.com/uuUqE_dXzy.jpg)"><p class="wp-block-cover-image-text">Guten Berg!</p></div>
+<!-- /wp:cover-image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__embedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,8 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/embed {"url":"https://example.com/"} -->
+<figure class="wp-block-embed">
+ <div class="wp-block-embed__wrapper">
+ https://example.com/
+ </div>
+ <figcaption>Embedded content from an example URL</figcaption>
+</figure>
+<!-- /wp:core/embed -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__embedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/embed",
+ "isValid": true,
+ "attributes": {
+ "url": "https://example.com/",
+ "caption": "Embedded content from an example URL",
+ "allowResponsive": true
+ },
+ "innerBlocks": [],
+ "originalContent": "<figure class=\"wp-block-embed\">\n <div class=\"wp-block-embed__wrapper\">\n https://example.com/\n </div>\n <figcaption>Embedded content from an example URL</figcaption>\n</figure>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__embedparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/embed",
+ "attrs": {
+ "url": "https://example.com/"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<figure class=\"wp-block-embed\">\n <div class=\"wp-block-embed__wrapper\">\n https://example.com/\n </div>\n <figcaption>Embedded content from an example URL</figcaption>\n</figure>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__embedserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__embed.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,5 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:embed {"url":"https://example.com/"} -->
+<figure class="wp-block-embed"><div class="wp-block-embed__wrapper">
+https://example.com/
+</div><figcaption>Embedded content from an example URL</figcaption></figure>
+<!-- /wp:embed -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__newwindowhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js","showDownloadButton":true,"id":176} -->
+<div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download="6546">Download</a></div>
+<!-- /wp:file -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__newwindowjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,18 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/file",
+ "isValid": true,
+ "attributes": {
+ "id": 176,
+ "href": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js",
+ "fileName": "6546",
+ "textLinkHref": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js",
+ "textLinkTarget": "_blank",
+ "showDownloadButton": true,
+ "downloadButtonText": "Download"
+ },
+ "innerBlocks": [],
+ "originalContent": "<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download=\"6546\">Download</a></div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__newwindowparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,18 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/file",
+ "attrs": {
+ "href": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js",
+ "showDownloadButton": true,
+ "id": 176
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" target=\"_blank\" rel=\"noreferrer noopener\">6546</a><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download=\"6546\">Download</a></div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__newwindowserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__new-window.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:file {"id":176,"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} -->
+<div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download="6546">Download</a></div>
+<!-- /wp:file -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__nodownloadbuttonhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js","showDownloadButton":false,"id":176} -->
+<div class="wp-block-file"><a href="http://localhost:8888/?attachment_id=176">lkjfijwef</a></div>
+<!-- /wp:file -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__nodownloadbuttonjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,17 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/file",
+ "isValid": true,
+ "attributes": {
+ "id": 176,
+ "href": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js",
+ "fileName": "lkjfijwef",
+ "textLinkHref": "http://localhost:8888/?attachment_id=176",
+ "showDownloadButton": false,
+ "downloadButtonText": ""
+ },
+ "innerBlocks": [],
+ "originalContent": "<div class=\"wp-block-file\"><a href=\"http://localhost:8888/?attachment_id=176\">lkjfijwef</a></div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__nodownloadbuttonparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,18 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/file",
+ "attrs": {
+ "href": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js",
+ "showDownloadButton": false,
+ "id": 176
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/?attachment_id=176\">lkjfijwef</a></div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__nodownloadbuttonserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-download-button.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:file {"id":176,"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js","showDownloadButton":false} -->
+<div class="wp-block-file"><a href="http://localhost:8888/?attachment_id=176">lkjfijwef</a></div>
+<!-- /wp:file -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__notextlinkhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js","showDownloadButton":true,"id":176} -->
+<div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download="">Download</a></div>
+<!-- /wp:file -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__notextlinkjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/file",
+ "isValid": true,
+ "attributes": {
+ "id": 176,
+ "href": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js",
+ "fileName": "",
+ "showDownloadButton": true,
+ "downloadButtonText": "Download"
+ },
+ "innerBlocks": [],
+ "originalContent": "<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download=\"\">Download</a></div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__notextlinkparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,18 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/file",
+ "attrs": {
+ "href": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js",
+ "showDownloadButton": true,
+ "id": 176
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<div class=\"wp-block-file\"><a href=\"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js\" class=\"wp-block-file__button\" download=\"\">Download</a></div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__file__notextlinkserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__file__no-text-link.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:file {"id":176,"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} -->
+<div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button" download="">Download</a></div>
+<!-- /wp:file -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__freeformhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,6 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/freeform -->
+Testing freeform block with some
+<div class="wp-some-class">
+ HTML <span style="color: red;">content</span>
+</div>
+<!-- /wp:core/freeform -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__freeformjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/freeform",
+ "isValid": true,
+ "attributes": {
+ "content": "<p>Testing freeform block with some\n</p><div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>"
+ },
+ "innerBlocks": [],
+ "originalContent": "<p>Testing freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__freeformparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/freeform",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\nTesting freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__freeformserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,4 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<p>Testing freeform block with some
+</p><div class="wp-some-class">
+ HTML <span style="color: red;">content</span>
+</div>
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__freeform__undelimitedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,4 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+Testing freeform block with some
+<div class="wp-some-class">
+ HTML <span style="color: red;">content</span>
+</div>
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__freeform__undelimitedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/freeform",
+ "isValid": true,
+ "attributes": {
+ "content": "<p>Testing freeform block with some\n</p><div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>"
+ },
+ "innerBlocks": [],
+ "originalContent": "<p>Testing freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__freeform__undelimitedparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,8 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "attrs": {},
+ "blockName": null,
+ "innerBlocks": [],
+ "innerHTML": "Testing freeform block with some\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__freeform__undelimitedserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__freeform__undelimited.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,4 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<p>Testing freeform block with some
+</p><div class="wp-some-class">
+ HTML <span style="color: red;">content</span>
+</div>
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__galleryhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/gallery -->
+<ul class="wp-block-gallery columns-2 is-cropped">
+ <li class="blocks-gallery-item">
+ <figure>
+ <img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" />
+ </figure>
+ </li>
+ <li class="blocks-gallery-item">
+ <figure>
+ <img src="http://google.com/hi.png" alt="title" />
+ </figure>
+ </li>
+</ul>
+<!-- /wp:core/gallery -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__galleryjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,25 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/gallery",
+ "isValid": true,
+ "attributes": {
+ "images": [
+ {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
+ "alt": "title",
+ "caption": ""
+ },
+ {
+ "url": "http://google.com/hi.png",
+ "alt": "title",
+ "caption": ""
+ }
+ ],
+ "imageCrop": true,
+ "linkTo": "none"
+ },
+ "innerBlocks": [],
+ "originalContent": "<ul class=\"wp-block-gallery columns-2 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__galleryparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/gallery",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<ul class=\"wp-block-gallery columns-2 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__galleryserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:gallery -->
+<ul class="wp-block-gallery columns-2 is-cropped"><li class="blocks-gallery-item"><figure><img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title"/></figure></li><li class="blocks-gallery-item"><figure><img src="http://google.com/hi.png" alt="title"/></figure></li></ul>
+<!-- /wp:gallery -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__gallery__columnshtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/gallery {"columns":1} -->
+<ul class="wp-block-gallery columns-1 is-cropped">
+ <li class="blocks-gallery-item">
+ <figure>
+ <img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" />
+ </figure>
+ </li>
+ <li class="blocks-gallery-item">
+ <figure>
+ <img src="http://google.com/hi.png" alt="title" />
+ </figure>
+ </li>
+</ul>
+<!-- /wp:core/gallery -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__gallery__columnsjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,26 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/gallery",
+ "isValid": true,
+ "attributes": {
+ "images": [
+ {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
+ "alt": "title",
+ "caption": ""
+ },
+ {
+ "url": "http://google.com/hi.png",
+ "alt": "title",
+ "caption": ""
+ }
+ ],
+ "columns": 1,
+ "imageCrop": true,
+ "linkTo": "none"
+ },
+ "innerBlocks": [],
+ "originalContent": "<ul class=\"wp-block-gallery columns-1 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__gallery__columnsparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/gallery",
+ "attrs": {
+ "columns": 1
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<ul class=\"wp-block-gallery columns-1 is-cropped\">\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n\t<li class=\"blocks-gallery-item\">\n\t\t<figure>\n\t\t\t<img src=\"http://google.com/hi.png\" alt=\"title\" />\n\t\t</figure>\n\t</li>\n</ul>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__gallery__columnsserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__gallery__columns.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:gallery {"columns":1} -->
+<ul class="wp-block-gallery columns-1 is-cropped"><li class="blocks-gallery-item"><figure><img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title"/></figure></li><li class="blocks-gallery-item"><figure><img src="http://google.com/hi.png" alt="title"/></figure></li></ul>
+<!-- /wp:gallery -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__heading__h2emhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/heading -->
+<h2>The <em>Inserter</em> Tool</h2>
+<!-- /wp:core/heading -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__heading__h2emjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,13 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/heading",
+ "isValid": true,
+ "attributes": {
+ "content": "The <em>Inserter</em> Tool",
+ "level": 2
+ },
+ "innerBlocks": [],
+ "originalContent": "<h2>The <em>Inserter</em> Tool</h2>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__heading__h2emparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/heading",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<h2>The <em>Inserter</em> Tool</h2>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__heading__h2emserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2-em.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:heading -->
+<h2>The <em>Inserter</em> Tool</h2>
+<!-- /wp:heading -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__heading__h2html"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/heading -->
+<h2>A picture is worth a thousand words, or so the saying goes</h2>
+<!-- /wp:core/heading -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__heading__h2json"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,13 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/heading",
+ "isValid": true,
+ "attributes": {
+ "content": "A picture is worth a thousand words, or so the saying goes",
+ "level": 2
+ },
+ "innerBlocks": [],
+ "originalContent": "<h2>A picture is worth a thousand words, or so the saying goes</h2>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__heading__h2parsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/heading",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<h2>A picture is worth a thousand words, or so the saying goes</h2>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__heading__h2serializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__heading__h2.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:heading -->
+<h2>A picture is worth a thousand words, or so the saying goes</h2>
+<!-- /wp:heading -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__htmlhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,4 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/html -->
+<h1>Some HTML code</h1>
+<marquee>This text will scroll from right to left</marquee>
+<!-- /wp:core/html -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__htmljson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/html",
+ "isValid": true,
+ "attributes": {
+ "content": "<h1>Some HTML code</h1>\n<marquee>This text will scroll from right to left</marquee>"
+ },
+ "innerBlocks": [],
+ "originalContent": "<h1>Some HTML code</h1>\n<marquee>This text will scroll from right to left</marquee>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__htmlparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/html",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<h1>Some HTML code</h1>\n<marquee>This text will scroll from right to left</marquee>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__htmlserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__html.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,4 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:html -->
+<h1>Some HTML code</h1>
+<marquee>This text will scroll from right to left</marquee>
+<!-- /wp:html -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__imagehtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/image -->
+<figure class="wp-block-image"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt="" /></figure>
+<!-- /wp:core/image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__imagejson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,15 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/image",
+ "isValid": true,
+ "attributes": {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
+ "alt": "",
+ "caption": "",
+ "linkDestination": "none"
+ },
+ "innerBlocks": [],
+ "originalContent": "<figure class=\"wp-block-image\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></figure>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__imageparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/image",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<figure class=\"wp-block-image\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></figure>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__imageserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:image -->
+<figure class="wp-block-image"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt=""/></figure>
+<!-- /wp:image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__attachmentlinkhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/image {"linkDestination":"attachment"} -->
+<figure class="wp-block-image"><a href="http://localhost:8888/?attachment_id=7"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt="" /></a></figure>
+<!-- /wp:core/image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__attachmentlinkjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/image",
+ "isValid": true,
+ "attributes": {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
+ "alt": "",
+ "caption": "",
+ "href": "http://localhost:8888/?attachment_id=7",
+ "linkDestination": "attachment"
+ },
+ "innerBlocks": [],
+ "originalContent": "<figure class=\"wp-block-image\"><a href=\"http://localhost:8888/?attachment_id=7\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__attachmentlinkparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/image",
+ "attrs": {
+ "linkDestination": "attachment"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"http://localhost:8888/?attachment_id=7\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__attachmentlinkserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__attachment-link.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:image {"linkDestination":"attachment"} -->
+<figure class="wp-block-image"><a href="http://localhost:8888/?attachment_id=7"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt=""/></a></figure>
+<!-- /wp:image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__centercaptionhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/image {"align":"center"} -->
+<div class="wp-block-image"><figure class="aligncenter"><img src="https://cldup.com/YLYhpou2oq.jpg" alt="" /><figcaption>Give it a try. Press the "really wide" button on the image toolbar.</figcaption></figure></div>
+<!-- /wp:core/image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__centercaptionjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/image",
+ "isValid": true,
+ "attributes": {
+ "url": "https://cldup.com/YLYhpou2oq.jpg",
+ "alt": "",
+ "caption": "Give it a try. Press the \"really wide\" button on the image toolbar.",
+ "align": "center",
+ "linkDestination": "none"
+ },
+ "innerBlocks": [],
+ "originalContent": "<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https://cldup.com/YLYhpou2oq.jpg\" alt=\"\" /><figcaption>Give it a try. Press the "really wide" button on the image toolbar.</figcaption></figure></div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__centercaptionparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/image",
+ "attrs": {
+ "align": "center"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https://cldup.com/YLYhpou2oq.jpg\" alt=\"\" /><figcaption>Give it a try. Press the "really wide" button on the image toolbar.</figcaption></figure></div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__centercaptionserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__center-caption.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:image {"align":"center"} -->
+<div class="wp-block-image"><figure class="aligncenter"><img src="https://cldup.com/YLYhpou2oq.jpg" alt=""/><figcaption>Give it a try. Press the "really wide" button on the image toolbar.</figcaption></figure></div>
+<!-- /wp:image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__customlinkhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/image {"linkDestination":"custom"} -->
+<figure class="wp-block-image"><a href="https://wordpress.org/"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt="" /></a></figure>
+<!-- /wp:core/image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__customlinkjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/image",
+ "isValid": true,
+ "attributes": {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
+ "alt": "",
+ "caption": "",
+ "href": "https://wordpress.org/",
+ "linkDestination": "custom"
+ },
+ "innerBlocks": [],
+ "originalContent": "<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__customlinkparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/image",
+ "attrs": {
+ "linkDestination": "custom"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__customlinkserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__custom-link.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:image {"linkDestination":"custom"} -->
+<figure class="wp-block-image"><a href="https://wordpress.org/"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt=""/></a></figure>
+<!-- /wp:image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__medialinkhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/image {"linkDestination":"media"} -->
+<figure class="wp-block-image"><a href="https://cldup.com/uuUqE_dXzy.jpg"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt="" /></a></figure>
+<!-- /wp:core/image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__medialinkjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/image",
+ "isValid": true,
+ "attributes": {
+ "url": "https://cldup.com/uuUqE_dXzy.jpg",
+ "alt": "",
+ "caption": "",
+ "href": "https://cldup.com/uuUqE_dXzy.jpg",
+ "linkDestination": "media"
+ },
+ "innerBlocks": [],
+ "originalContent": "<figure class=\"wp-block-image\"><a href=\"https://cldup.com/uuUqE_dXzy.jpg\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__medialinkparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/image",
+ "attrs": {
+ "linkDestination": "media"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://cldup.com/uuUqE_dXzy.jpg\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__image__medialinkserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__image__media-link.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:image {"linkDestination":"media"} -->
+<figure class="wp-block-image"><a href="https://cldup.com/uuUqE_dXzy.jpg"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt=""/></a></figure>
+<!-- /wp:image -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__invalidCapitalshtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/invalid-Capitals /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__invalidCapitalsjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/freeform",
+ "isValid": true,
+ "attributes": {
+ "content": "<p><!-- wp:core/invalid-Capitals /--></p>"
+ },
+ "innerBlocks": [],
+ "originalContent": "<p><!-- wp:core/invalid-Capitals /--></p>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__invalidCapitalsparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,8 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "<!-- wp:core/invalid-Capitals /-->\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__invalidCapitalsserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-Capitals.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<p><!-- wp:core/invalid-Capitals /--></p>
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__invalidspecialhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/invalid-$special /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__invalidspecialjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/freeform",
+ "isValid": true,
+ "attributes": {
+ "content": "<p><!-- wp:core/invalid-$special /--></p>"
+ },
+ "innerBlocks": [],
+ "originalContent": "<p><!-- wp:core/invalid-$special /--></p>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__invalidspecialparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,8 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "<!-- wp:core/invalid-$special /-->\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__invalidspecialserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__invalid-special.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<p><!-- wp:core/invalid-$special /--></p>
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestcommentshtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:latest-comments {"displayAvatar":true,"displayExcerpt":true,"displayTimestamp":true} /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestcommentsjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,15 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/latest-comments",
+ "isValid": true,
+ "attributes": {
+ "commentsToShow": 5,
+ "displayAvatar": true,
+ "displayDate": true,
+ "displayExcerpt": true
+ },
+ "innerBlocks": [],
+ "originalContent": ""
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestcommentsparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,18 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/latest-comments",
+ "attrs": {
+ "displayAvatar": true,
+ "displayExcerpt": true,
+ "displayTimestamp": true
+ },
+ "innerBlocks": [],
+ "innerHTML": ""
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestcommentsserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-comments.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:latest-comments /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestpostshtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/latest-posts {"postsToShow":5,"displayPostDate":false} /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestpostsjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,17 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/latest-posts",
+ "isValid": true,
+ "attributes": {
+ "postsToShow": 5,
+ "displayPostDate": false,
+ "postLayout": "list",
+ "columns": 3,
+ "order": "desc",
+ "orderBy": "date"
+ },
+ "innerBlocks": [],
+ "originalContent": ""
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestpostsparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,17 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/latest-posts",
+ "attrs": {
+ "postsToShow": 5,
+ "displayPostDate": false
+ },
+ "innerBlocks": [],
+ "innerHTML": ""
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestpostsserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:latest-posts /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestposts__displayPostDatehtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/latest-posts {"postsToShow":5,"displayPostDate":true} /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestposts__displayPostDatejson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,17 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/latest-posts",
+ "isValid": true,
+ "attributes": {
+ "postsToShow": 5,
+ "displayPostDate": true,
+ "postLayout": "list",
+ "columns": 3,
+ "order": "desc",
+ "orderBy": "date"
+ },
+ "innerBlocks": [],
+ "originalContent": ""
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestposts__displayPostDateparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,17 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/latest-posts",
+ "attrs": {
+ "postsToShow": 5,
+ "displayPostDate": true
+ },
+ "innerBlocks": [],
+ "innerHTML": ""
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__latestposts__displayPostDateserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__latest-posts__displayPostDate.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:latest-posts {"displayPostDate":true} /-->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__list__ulhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/list -->
+<ul><li>Text & Headings</li><li>Images & Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul>
+<!-- /wp:core/list -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__list__uljson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,13 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/list",
+ "isValid": true,
+ "attributes": {
+ "ordered": false,
+ "values": "<li>Text & Headings</li><li>Images & Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li>"
+ },
+ "innerBlocks": [],
+ "originalContent": "<ul><li>Text & Headings</li><li>Images & Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__list__ulparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/list",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<ul><li>Text & Headings</li><li>Images & Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__list__ulserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__list__ul.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:list -->
+<ul><li>Text & Headings</li><li>Images & Videos</li><li>Galleries</li><li>Embeds, like YouTube, Tweets, or other WordPress posts.</li><li>Layout blocks, like Buttons, Hero Images, Separators, etc.</li><li>And <em>Lists</em> like this one of course :)</li></ul>
+<!-- /wp:list -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__missinghtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,6 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:unregistered/example {"attr1":"One","attr2":"Two"} -->
+<p>Testing missing block with some</p>
+<div class="wp-some-class">
+ HTML <span style="color: red;">content</span>
+</div>
+<!-- /wp:unregistered/example -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__missingjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/missing",
+ "isValid": true,
+ "attributes": {
+ "originalContent": "<!-- wp:unregistered/example {\"attr1\":\"One\",\"attr2\":\"Two\"} -->\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n<!-- /wp:unregistered/example -->",
+ "originalName": "unregistered/example",
+ "originalUndelimitedContent": "<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>"
+ },
+ "innerBlocks": [],
+ "originalContent": "<!-- wp:unregistered/example {\"attr1\":\"One\",\"attr2\":\"Two\"} -->\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n<!-- /wp:unregistered/example -->"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__missingparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,17 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "unregistered/example",
+ "attrs": {
+ "attr1": "One",
+ "attr2": "Two"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__missingserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__missing.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,6 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:unregistered/example {"attr1":"One","attr2":"Two"} -->
+<p>Testing missing block with some</p>
+<div class="wp-some-class">
+ HTML <span style="color: red;">content</span>
+</div>
+<!-- /wp:unregistered/example -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__morehtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/more -->
+<!--more-->
+<!-- /wp:core/more -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__morejson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/more",
+ "isValid": true,
+ "attributes": {
+ "noTeaser": false
+ },
+ "innerBlocks": [],
+ "originalContent": "<!--more-->"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__moreparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/more",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<!--more-->\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__moreserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__more.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:more -->
+<!--more-->
+<!-- /wp:more -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__more__customtextteaserhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,4 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/more {"customText":"Continue Reading","noTeaser":true} -->
+<!--more Continue Reading-->
+<!--noteaser-->
+<!-- /wp:core/more -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__more__customtextteaserjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,13 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/more",
+ "isValid": true,
+ "attributes": {
+ "customText": "Continue Reading",
+ "noTeaser": true
+ },
+ "innerBlocks": [],
+ "originalContent": "<!--more Continue Reading-->\n<!--noteaser-->"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__more__customtextteaserparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,17 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/more",
+ "attrs": {
+ "customText": "Continue Reading",
+ "noTeaser": true
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<!--more Continue Reading-->\n<!--noteaser-->\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__more__customtextteaserserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__more__custom-text-teaser.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,4 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:more {"customText":"Continue Reading","noTeaser":true} -->
+<!--more Continue Reading-->
+<!--noteaser-->
+<!-- /wp:more -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__nextpagehtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/nextpage -->
+<!--nextpage-->
+<!-- /wp:core/nextpage -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__nextpagejson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,10 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/nextpage",
+ "isValid": true,
+ "attributes": {},
+ "innerBlocks": [],
+ "originalContent": "<!--nextpage-->"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__nextpageparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/nextpage",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<!--nextpage-->\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__nextpageserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__nextpage.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:nextpage -->
+<!--nextpage-->
+<!-- /wp:nextpage -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__paragraph__alignrighthtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/paragraph {"align":"right"} -->
+<p style="text-align:right;">... like this one, which is separate from the above and right aligned.</p>
+<!-- /wp:core/paragraph -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__paragraph__alignrightjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "content": "... like this one, which is separate from the above and right aligned.",
+ "align": "right",
+ "dropCap": false
+ },
+ "innerBlocks": [],
+ "originalContent": "<p style=\"text-align:right;\">... like this one, which is separate from the above and right aligned.</p>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__paragraph__alignrightparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/paragraph",
+ "attrs": {
+ "align": "right"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<p style=\"text-align:right;\">... like this one, which is separate from the above and right aligned.</p>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__paragraph__alignrightserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__align-right.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:paragraph {"align":"right"} -->
+<p style="text-align:right">... like this one, which is separate from the above and right aligned.</p>
+<!-- /wp:paragraph -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__paragraph__deprecatedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:paragraph -->
+Unwrapped is <em>still</em> valid.
+<!-- /wp:paragraph -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__paragraph__deprecatedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,13 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "content": "Unwrapped is <em>still</em> valid.",
+ "dropCap": false
+ },
+ "innerBlocks": [],
+ "originalContent": "Unwrapped is <em>still</em> valid."
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__paragraph__deprecatedparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/paragraph",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\nUnwrapped is <em>still</em> valid.\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__paragraph__deprecatedserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__paragraph__deprecated.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:paragraph -->
+<p>Unwrapped is <em>still</em> valid.</p>
+<!-- /wp:paragraph -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__preformattedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/preformatted -->
+<pre class="wp-block-preformatted">Some <em>preformatted</em> text...<br>And more!</pre>
+<!-- /wp:core/preformatted -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__preformattedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/preformatted",
+ "isValid": true,
+ "attributes": {
+ "content": "Some <em>preformatted</em> text...<br>And more!"
+ },
+ "innerBlocks": [],
+ "originalContent": "<pre class=\"wp-block-preformatted\">Some <em>preformatted</em> text...<br>And more!</pre>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__preformattedparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/preformatted",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<pre class=\"wp-block-preformatted\">Some <em>preformatted</em> text...<br>And more!</pre>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__preformattedserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__preformatted.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:preformatted -->
+<pre class="wp-block-preformatted">Some <em>preformatted</em> text...<br>And more!</pre>
+<!-- /wp:preformatted -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__pullquotehtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,7 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/pullquote -->
+<figure class="wp-block-pullquote">
+ <blockquote>
+ <p>Testing pullquote block...</p><cite>...with a caption</cite>
+ </blockquote>
+</figure>
+<!-- /wp:core/pullquote -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__pullquotejson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,13 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/pullquote",
+ "isValid": true,
+ "attributes": {
+ "value": "<p>Testing pullquote block...</p>",
+ "citation": "...with a caption"
+ },
+ "innerBlocks": [],
+ "originalContent": "<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Testing pullquote block...</p><cite>...with a caption</cite>\n </blockquote>\n</figure>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__pullquoteparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/pullquote",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Testing pullquote block...</p><cite>...with a caption</cite>\n </blockquote>\n</figure>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__pullquoteserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:pullquote -->
+<figure class="wp-block-pullquote"><blockquote><p>Testing pullquote block...</p><cite>...with a caption</cite></blockquote></figure>
+<!-- /wp:pullquote -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__pullquote__multiparagraphhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,9 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/pullquote -->
+<figure class="wp-block-pullquote">
+ <blockquote>
+ <p>Paragraph <strong>one</strong></p>
+ <p>Paragraph two</p>
+ <cite>by whomever</cite>
+ </blockquote>
+</figure>
+<!-- /wp:core/pullquote -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__pullquote__multiparagraphjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,13 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/pullquote",
+ "isValid": true,
+ "attributes": {
+ "value": "<p>Paragraph <strong>one</strong></p><p>Paragraph two</p>",
+ "citation": "by whomever"
+ },
+ "innerBlocks": [],
+ "originalContent": "<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Paragraph <strong>one</strong></p>\n <p>Paragraph two</p>\n <cite>by whomever</cite>\n\t</blockquote>\n</figure>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__pullquote__multiparagraphparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/pullquote",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Paragraph <strong>one</strong></p>\n <p>Paragraph two</p>\n <cite>by whomever</cite>\n\t</blockquote>\n</figure>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__pullquote__multiparagraphserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__pullquote__multi-paragraph.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:pullquote -->
+<figure class="wp-block-pullquote"><blockquote><p>Paragraph <strong>one</strong></p><p>Paragraph two</p><cite>by whomever</cite></blockquote></figure>
+<!-- /wp:pullquote -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__quote__style1html"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/quote -->
+<blockquote class="wp-block-quote"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks†to make it easy what today might take shortcodes, custom HTML, or “mystery meat†embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>
+<!-- /wp:core/quote -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__quote__style1json"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,13 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/quote",
+ "isValid": true,
+ "attributes": {
+ "value": "<p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks†to make it easy what today might take shortcodes, custom HTML, or “mystery meat†embed discovery.</p>",
+ "citation": "Matt Mullenweg, 2017"
+ },
+ "innerBlocks": [],
+ "originalContent": "<blockquote class=\"wp-block-quote\"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks†to make it easy what today might take shortcodes, custom HTML, or “mystery meat†embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__quote__style1parsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/quote",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<blockquote class=\"wp-block-quote\"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks†to make it easy what today might take shortcodes, custom HTML, or “mystery meat†embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__quote__style1serializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-1.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:quote -->
+<blockquote class="wp-block-quote"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks†to make it easy what today might take shortcodes, custom HTML, or “mystery meat†embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>
+<!-- /wp:quote -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__quote__style2html"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/quote {"className":"is-style-large"} -->
+<blockquote class="wp-block-quote is-style-large"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>
+<!-- /wp:core/quote -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__quote__style2json"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/quote",
+ "isValid": true,
+ "attributes": {
+ "value": "<p>There is no greater agony than bearing an untold story inside you.</p>",
+ "citation": "Maya Angelou",
+ "className": "is-style-large"
+ },
+ "innerBlocks": [],
+ "originalContent": "<blockquote class=\"wp-block-quote is-style-large\"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__quote__style2parsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/quote",
+ "attrs": {
+ "className": "is-style-large"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<blockquote class=\"wp-block-quote is-style-large\"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__quote__style2serializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__quote__style-2.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:quote {"className":"is-style-large"} -->
+<blockquote class="wp-block-quote is-style-large"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>
+<!-- /wp:quote -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__separatorhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/separator -->
+<hr class="wp-block-separator" />
+<!-- /wp:core/separator -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__separatorjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,10 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/separator",
+ "isValid": true,
+ "attributes": {},
+ "innerBlocks": [],
+ "originalContent": "<hr class=\"wp-block-separator\" />"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__separatorparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/separator",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<hr class=\"wp-block-separator\" />\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__separatorserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__separator.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:separator -->
+<hr class="wp-block-separator"/>
+<!-- /wp:separator -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__shortcodehtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/shortcode -->
+[gallery ids="238,338"]
+<!-- /wp:core/shortcode -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__shortcodejson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/shortcode",
+ "isValid": true,
+ "attributes": {
+ "text": "[gallery ids=\"238,338\"]"
+ },
+ "innerBlocks": [],
+ "originalContent": "[gallery ids=\"238,338\"]"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__shortcodeparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/shortcode",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n[gallery ids=\"238,338\"]\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__shortcodeserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__shortcode.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:shortcode -->
+[gallery ids="238,338"]
+<!-- /wp:shortcode -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__spacerhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:spacer -->
+<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
+<!-- /wp:spacer -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__spacerjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/spacer",
+ "isValid": true,
+ "attributes": {
+ "height": 100
+ },
+ "innerBlocks": [],
+ "originalContent": "<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__spacerparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/spacer",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__spacerserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__spacer.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:spacer -->
+<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
+<!-- /wp:spacer -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__subheadhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/subhead -->
+<p class="wp-block-subhead">This is a <em>subhead</em>.</p>
+<!-- /wp:core/subhead -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__subheadjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/subhead",
+ "isValid": true,
+ "attributes": {
+ "content": "This is a <em>subhead</em>."
+ },
+ "innerBlocks": [],
+ "originalContent": "<p class=\"wp-block-subhead\">This is a <em>subhead</em>.</p>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__subheadparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/subhead",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<p class=\"wp-block-subhead\">This is a <em>subhead</em>.</p>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__subheadserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__subhead.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:subhead -->
+<p class="wp-block-subhead">This is a <em>subhead</em>.</p>
+<!-- /wp:subhead -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__tablehtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/table -->
+<table class="wp-block-table"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href="https://wordpress.org/news/2003/05/wordpress-now-available/">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href="https://wordpress.org/news/2004/01/wordpress-10/">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href="https://codex.wordpress.org/WordPress_Versions">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href="https://wordpress.org/news/2015/12/clifford/">4.4</a></td><td>Clifford Brown</td><td>De
cember 8, 2015</td></tr><tr><td><a href="https://wordpress.org/news/2016/04/coleman/">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/08/pepper/">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/12/vaughan/">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>
+<!-- /wp:core/table -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__tablejson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,145 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/table",
+ "isValid": true,
+ "attributes": {
+ "hasFixedLayout": false,
+ "head": [
+ {
+ "cells": [
+ {
+ "content": "Version",
+ "tag": "th"
+ },
+ {
+ "content": "Musician",
+ "tag": "th"
+ },
+ {
+ "content": "Date",
+ "tag": "th"
+ }
+ ]
+ }
+ ],
+ "body": [
+ {
+ "cells": [
+ {
+ "content": "<a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a>",
+ "tag": "td"
+ },
+ {
+ "content": "No musician chosen.",
+ "tag": "td"
+ },
+ {
+ "content": "May 27, 2003",
+ "tag": "td"
+ }
+ ]
+ },
+ {
+ "cells": [
+ {
+ "content": "<a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a>",
+ "tag": "td"
+ },
+ {
+ "content": "Miles Davis",
+ "tag": "td"
+ },
+ {
+ "content": "January 3, 2004",
+ "tag": "td"
+ }
+ ]
+ },
+ {
+ "cells": [
+ {
+ "content": "Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a>",
+ "tag": "td"
+ },
+ {
+ "content": "…",
+ "tag": "td"
+ },
+ {
+ "content": "…",
+ "tag": "td"
+ }
+ ]
+ },
+ {
+ "cells": [
+ {
+ "content": "<a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a>",
+ "tag": "td"
+ },
+ {
+ "content": "Clifford Brown",
+ "tag": "td"
+ },
+ {
+ "content": "December 8, 2015",
+ "tag": "td"
+ }
+ ]
+ },
+ {
+ "cells": [
+ {
+ "content": "<a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a>",
+ "tag": "td"
+ },
+ {
+ "content": "Coleman Hawkins",
+ "tag": "td"
+ },
+ {
+ "content": "April 12, 2016",
+ "tag": "td"
+ }
+ ]
+ },
+ {
+ "cells": [
+ {
+ "content": "<a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a>",
+ "tag": "td"
+ },
+ {
+ "content": "Pepper Adams",
+ "tag": "td"
+ },
+ {
+ "content": "August 16, 2016",
+ "tag": "td"
+ }
+ ]
+ },
+ {
+ "cells": [
+ {
+ "content": "<a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a>",
+ "tag": "td"
+ },
+ {
+ "content": "Sarah Vaughan",
+ "tag": "td"
+ },
+ {
+ "content": "December 6, 2016",
+ "tag": "td"
+ }
+ ]
+ }
+ ],
+ "foot": []
+ },
+ "innerBlocks": [],
+ "originalContent": "<table class=\"wp-block-table\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></
td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__tableparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/table",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<table class=\"wp-block-table\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td&g
t;<td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__tableserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__table.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:table -->
+<table class="wp-block-table"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href="https://wordpress.org/news/2003/05/wordpress-now-available/">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href="https://wordpress.org/news/2004/01/wordpress-10/">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href="https://codex.wordpress.org/WordPress_Versions">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href="https://wordpress.org/news/2015/12/clifford/">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015<
/td></tr><tr><td><a href="https://wordpress.org/news/2016/04/coleman/">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/08/pepper/">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/12/vaughan/">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>
+<!-- /wp:table -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__textcolumnshtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,10 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/text-columns {"width":"center"} -->
+<div class="wp-block-text-columns aligncenter columns-2">
+ <div class="wp-block-column">
+ <p>One</p>
+ </div>
+ <div class="wp-block-column">
+ <p>Two</p>
+ </div>
+</div>
+<!-- /wp:core/text-columns -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__textcolumnsjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,21 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/text-columns",
+ "isValid": true,
+ "attributes": {
+ "content": [
+ {
+ "children": "One"
+ },
+ {
+ "children": "Two"
+ }
+ ],
+ "columns": 2,
+ "width": "center"
+ },
+ "innerBlocks": [],
+ "originalContent": "<div class=\"wp-block-text-columns aligncenter columns-2\">\n <div class=\"wp-block-column\">\n <p>One</p>\n </div>\n <div class=\"wp-block-column\">\n <p>Two</p>\n </div>\n</div>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__textcolumnsparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/text-columns",
+ "attrs": {
+ "width": "center"
+ },
+ "innerBlocks": [],
+ "innerHTML": "\n<div class=\"wp-block-text-columns aligncenter columns-2\">\n <div class=\"wp-block-column\">\n <p>One</p>\n </div>\n <div class=\"wp-block-column\">\n <p>Two</p>\n </div>\n</div>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__textcolumnsserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__text-columns.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:text-columns {"width":"center"} -->
+<div class="wp-block-text-columns aligncenter columns-2"><div class="wp-block-column"><p>One</p></div><div class="wp-block-column"><p>Two</p></div></div>
+<!-- /wp:text-columns -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__text__convertstoparagraphhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/text -->
+<p>This is an old-style text block. Changed to <code>paragraph</code> in #2135.</p>
+<!-- /wp:core/text -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__text__convertstoparagraphjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,13 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/paragraph",
+ "isValid": true,
+ "attributes": {
+ "content": "This is an old-style text block. Changed to <code>paragraph</code> in #2135.",
+ "dropCap": false
+ },
+ "innerBlocks": [],
+ "originalContent": "<p>This is an old-style text block. Changed to <code>paragraph</code> in #2135.</p>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__text__convertstoparagraphparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/text",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<p>This is an old-style text block. Changed to <code>paragraph</code> in #2135.</p>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__text__convertstoparagraphserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__text__converts-to-paragraph.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:paragraph -->
+<p>This is an old-style text block. Changed to <code>paragraph</code> in #2135.</p>
+<!-- /wp:paragraph -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__versehtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/verse -->
+<pre class="wp-block-verse">A <em>verse</em>…<br>And more!</pre>
+<!-- /wp:core/verse -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__versejson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/verse",
+ "isValid": true,
+ "attributes": {
+ "content": "A <em>verse</em>…<br>And more!"
+ },
+ "innerBlocks": [],
+ "originalContent": "<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__verseparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/verse",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__verseserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__verse.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:verse -->
+<pre class="wp-block-verse">A <em>verse</em>…<br>And more!</pre>
+<!-- /wp:verse -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__videohtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:core/video -->
+<figure class="wp-block-video"><video controls src="https://awesome-fake.video/file.mp4"></video></figure>
+<!-- /wp:core/video -->
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__videojson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,18 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "clientId": "_clientId_0",
+ "name": "core/video",
+ "isValid": true,
+ "attributes": {
+ "autoplay": false,
+ "caption": "",
+ "controls": true,
+ "loop": false,
+ "muted": false,
+ "preload": "metadata",
+ "src": "https://awesome-fake.video/file.mp4"
+ },
+ "innerBlocks": [],
+ "originalContent": "<figure class=\"wp-block-video\"><video controls src=\"https://awesome-fake.video/file.mp4\"></video></figure>"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__videoparsedjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.parsed.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.parsed.json (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.parsed.json 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,14 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+[
+ {
+ "blockName": "core/video",
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n<figure class=\"wp-block-video\"><video controls src=\"https://awesome-fake.video/file.mp4\"></video></figure>\n"
+ },
+ {
+ "blockName": null,
+ "attrs": {},
+ "innerBlocks": [],
+ "innerHTML": "\n"
+ }
+]
</ins></span></pre></div>
<a id="branches50testsphpunitdatablocksfixturescore__videoserializedhtml"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.serialized.html</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.serialized.html (rev 0)
+++ branches/5.0/tests/phpunit/data/blocks/fixtures/core__video.serialized.html 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,3 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:video -->
+<figure class="wp-block-video"><video controls src="https://awesome-fake.video/file.mp4"></video></figure>
+<!-- /wp:video -->
</ins></span></pre></div>
<a id="branches50testsphpunittestsblocksblockparserphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: branches/5.0/tests/phpunit/tests/blocks/block-parser.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tests/phpunit/tests/blocks/block-parser.php (rev 0)
+++ branches/5.0/tests/phpunit/tests/blocks/block-parser.php 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,120 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * WP_Block_Parser tests.
+ *
+ * @package WordPress
+ * @subpackage Blocks
+ * @since 5.0.0
+ */
+
+/**
+ * Tests for WP_Block_Parser
+ *
+ * @since 5.0.0
+ *
+ * @group blocks
+ */
+class WP_Test_Block_Parser extends WP_UnitTestCase {
+ /**
+ * The location of the fixtures to test with.
+ *
+ * @since 5.0.0
+ * @var string
+ */
+ protected static $fixtures_dir;
+
+ /**
+ * @ticket 45109
+ */
+ public function data_parsing_test_filenames() {
+ self::$fixtures_dir = DIR_TESTDATA . '/blocks/fixtures';
+
+ $fixture_filenames = array_merge(
+ glob( self::$fixtures_dir . '/*.json' ),
+ glob( self::$fixtures_dir . '/*.html' )
+ );
+
+ $fixture_filenames = array_values(
+ array_unique(
+ array_map(
+ array( $this, 'clean_fixture_filename' ),
+ $fixture_filenames
+ )
+ )
+ );
+
+ return array_map(
+ array( $this, 'pass_parser_fixture_filenames' ),
+ $fixture_filenames
+ );
+ }
+
+ /**
+ * @dataProvider data_parsing_test_filenames
+ * @ticket 45109
+ */
+ public function test_default_parser_output( $html_filename, $parsed_json_filename ) {
+ $html_path = self::$fixtures_dir . '/' . $html_filename;
+ $parsed_json_path = self::$fixtures_dir . '/' . $parsed_json_filename;
+
+ foreach ( array( $html_path, $parsed_json_path ) as $filename ) {
+ if ( ! file_exists( $filename ) ) {
+ //throw new Exception( "Missing fixture file: '$filename'" );
+ }
+ }
+
+ $html = self::strip_r( file_get_contents( $html_path ) );
+ $expected_parsed = json_decode( self::strip_r( file_get_contents( $parsed_json_path ) ), true );
+
+ $parser = new WP_Block_Parser();
+ $result = json_decode( json_encode( $parser->parse( $html ) ), true );
+
+ $this->assertEquals(
+ $expected_parsed,
+ $result,
+ "File '$parsed_json_filename' does not match expected value"
+ );
+ }
+
+ /**
+ * Helper function to remove relative paths and extension from a filename, leaving just the fixture name.
+ *
+ * @since 5.0.0
+ *
+ * @param string $filename The filename to clean.
+ * @return string The cleaned fixture name.
+ */
+ protected function clean_fixture_filename( $filename ) {
+ $filename = basename( $filename );
+ $filename = preg_replace( '/\..+$/', '', $filename );
+ return $filename;
+ }
+
+ /**
+ * Helper function to return the filenames needed to test the parser output.
+ *
+ * @since 5.0.0
+ *
+ * @param string $filename The cleaned fixture name.
+ * @return array The input and expected output filenames for that fixture.
+ */
+ protected function pass_parser_fixture_filenames( $filename ) {
+ return array(
+ "$filename.html",
+ "$filename.parsed.json",
+ );
+ }
+
+ /**
+ * Helper function to remove '\r' characters from a string.
+ *
+ * @since 5.0.0
+ *
+ * @param string $input The string to remove '\r' from.
+ * @return string The input string, with '\r' characters removed.
+ */
+ protected function strip_r( $input ) {
+ return str_replace( "\r", '', $input );
+ }
+
+}
</ins></span></pre></div>
<a id="branches50toolswebpackpackagesjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: branches/5.0/tools/webpack/packages.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- branches/5.0/tools/webpack/packages.js 2018-10-18 04:14:41 UTC (rev 43750)
+++ branches/5.0/tools/webpack/packages.js 2018-10-18 04:39:40 UTC (rev 43751)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -116,6 +116,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp-polyfill-node-contains.min.js': 'polyfill-library/polyfills/Node/prototype/contains/polyfill.js',
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const phpFiles = {
+ 'block-serialization-default-parser/parser.php': 'wp-includes/class-wp-block-parser.php',
+ };
+
</ins><span class="cx" style="display: block; padding: 0 10px"> const externals = {
</span><span class="cx" style="display: block; padding: 0 10px"> react: 'React',
</span><span class="cx" style="display: block; padding: 0 10px"> 'react-dom': 'ReactDOM',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -164,6 +168,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">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const phpCopies = Object.keys( phpFiles ).map( ( filename ) => ( {
+ from: join( baseDir, `node_modules/@wordpress/${ filename }` ),
+ to: join( baseDir, `src/${ phpFiles[ filename ] }` ),
+ } ) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> const config = {
</span><span class="cx" style="display: block; padding: 0 10px"> mode,
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -232,6 +241,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> [
</span><span class="cx" style="display: block; padding: 0 10px"> ...vendorCopies,
</span><span class="cx" style="display: block; padding: 0 10px"> ...cssCopies,
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ ...phpCopies,
</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></pre>
</div>
</div>
</body>
</html>