<!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>[46551] trunk/src/wp-content/themes/twentytwenty: Bundled Themes: Update Twenty Twenty.</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/46551">46551</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/46551","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>desrosj</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2019-10-15 18:45:02 +0000 (Tue, 15 Oct 2019)</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'>Bundled Themes: Update Twenty Twenty.
This brings `trunk`'s version of Twenty Twenty in-sync with GitHub.
For a complete list of changes since <a href="https://core.trac.wordpress.org/changeset/46445">[46445]</a>, see https://github.com/WordPress/twentytwenty/compare/7246fd6...bc89c51.
Props anlino, ianbelanger, poena, williampatton, nielslange, acosmin, netweb, joyously, mahesh901122, josephscott, byalextran, amolv, Clorith.
See <a href="https://core.trac.wordpress.org/ticket/48110">#48110</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpcontentthemestwentytwentystylelintrcjson">trunk/src/wp-content/themes/twentytwenty/.stylelintrc.json</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyassetscsseditorstyleblockrtlcss">trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyassetscsseditorstyleblockcss">trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyassetscsseditorstyleclassicrtlcss">trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic-rtl.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyassetscsseditorstyleclassiccss">trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyassetsjsindexjs">trunk/src/wp-content/themes/twentytwenty/assets/js/index.js</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyclassesclasstwentytwentycustomizephp">trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyfunctionsphp">trunk/src/wp-content/themes/twentytwenty/functions.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyheaderphp">trunk/src/wp-content/themes/twentytwenty/header.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentystylertlcss">trunk/src/wp-content/themes/twentytwenty/style-rtl.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentystylecss">trunk/src/wp-content/themes/twentytwenty/style.css</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentytemplatepartscontentcoverphp">trunk/src/wp-content/themes/twentytwenty/template-parts/content-cover.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentytemplatepartscontentphp">trunk/src/wp-content/themes/twentytwenty/template-parts/content.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentytemplatepartsmodalsearchphp">trunk/src/wp-content/themes/twentytwenty/template-parts/modal-search.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpcontentthemestwentytwentystylelintrcjson"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/.stylelintrc.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/.stylelintrc.json 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/.stylelintrc.json 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,7 +1,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "extends": "stylelint-config-wordpress",
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "extends": [
+ "stylelint-config-wordpress"
+ ],
+ "plugins": ["stylelint-a11y"],
</ins><span class="cx" style="display: block; padding: 0 10px"> "rules": {
</span><span class="cx" style="display: block; padding: 0 10px"> "font-family-no-missing-generic-family-keyword": null,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "no-descending-specificity": null
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "no-descending-specificity": null,
+ "a11y/no-outline-none": true,
+ "a11y/selector-pseudo-class-focus": true
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyassetscsseditorstyleblockrtlcss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -57,7 +57,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: normal;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(../fonts/inter/Inter-upright.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ src: url(../fonts/inter/Inter-upright-var.woff2) format("woff2");
</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"> @font-face {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -64,7 +64,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: italic;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(../fonts/inter/Inter-italic.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ src: url(../fonts/inter/Inter-italic-var.woff2) format("woff2");
</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"> /* Structure --------------------------------- */
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyassetscsseditorstyleblockcss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -57,7 +57,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: normal;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(../fonts/inter/Inter-upright.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ src: url(../fonts/inter/Inter-upright-var.woff2) format("woff2");
</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"> @font-face {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -64,7 +64,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: italic;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(../fonts/inter/Inter-italic.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ src: url(../fonts/inter/Inter-italic-var.woff2) format("woff2");
</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"> /* Structure --------------------------------- */
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyassetscsseditorstyleclassicrtlcss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic-rtl.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic-rtl.css 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic-rtl.css 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -30,7 +30,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: normal;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(../fonts/inter/Inter-upright.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ src: url(../fonts/inter/Inter-upright-var.woff2) format("woff2");
</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"> @font-face {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -37,7 +37,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: italic;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(../fonts/inter/Inter-italic.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ src: url(../fonts/inter/Inter-italic-var.woff2) format("woff2");
</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"> /* Structure --------------------------------- */
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyassetscsseditorstyleclassiccss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic.css 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic.css 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -30,7 +30,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: normal;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(../fonts/inter/Inter-upright.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ src: url(../fonts/inter/Inter-upright-var.woff2) format("woff2");
</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"> @font-face {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -37,7 +37,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: italic;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(../fonts/inter/Inter-italic.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ src: url(../fonts/inter/Inter-italic-var.woff2) format("woff2");
</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"> /* Structure --------------------------------- */
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyassetsjsindexjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/assets/js/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/assets/js/index.js 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/assets/js/index.js 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -92,23 +92,25 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Handle cover modals when they're toggled
</span><span class="cx" style="display: block; padding: 0 10px"> onToggle: function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- document.querySelector( '.cover-modal' ).addEventListener( 'toggled', function( event ) {
- var modal, body;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ document.querySelectorAll( '.cover-modal' ).forEach( function( element ) {
+ element.addEventListener( 'toggled', function( event ) {
+ var modal, body;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- modal = event.target;
- body = document.body;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ modal = event.target;
+ body = document.body;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( modal.classList.contains( 'active' ) ) {
- body.classList.add( 'showing-modal' );
- } else {
- body.classList.remove( 'showing-modal' );
- body.classList.add( 'hiding-modal' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( modal.classList.contains( 'active' ) ) {
+ body.classList.add( 'showing-modal' );
+ } else {
+ body.classList.remove( 'showing-modal' );
+ body.classList.add( 'hiding-modal' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Remove the hiding class after a delay, when animations have been run
- setTimeout( function() {
- body.classList.remove( 'hiding-modal' );
- }, 500 );
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ // Remove the hiding class after a delay, when animations have been run
+ setTimeout( function() {
+ body.classList.remove( 'hiding-modal' );
+ }, 500 );
+ }
+ } );
</ins><span class="cx" style="display: block; padding: 0 10px"> } );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -413,7 +415,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> init: function() {
</span><span class="cx" style="display: block; padding: 0 10px"> // If the current menu item is in a sub level, expand all the levels higher up on load
</span><span class="cx" style="display: block; padding: 0 10px"> this.expandLevel();
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- this.goBackToCloseButton();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ this.keepFocusInModal();
</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"> expandLevel: function() {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -433,74 +435,54 @@
</span><span class="cx" style="display: block; padding: 0 10px"> } );
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // If the current menu item is the last one, return to close button when tab
- goBackToCloseButton: function() {
- document.addEventListener( 'keydown', function( event ) {
- var closeMenuButton, mobileMenu, isDesktop, menuLinks, firstLevelmenuLinks, lastMenuLinkToggleButton, lastToogleSubMenuLinkNotOpened, lastMenuLinkHasSubClosedMenu, socialLinks, hasSocialMenu, lastModalMenuItems, focusedElementParentLi, focusedElementIsInsideModal, lastMenuItem, isFirstModalItem, isLastModalItem;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ keepFocusInModal: function() {
+ var _doc = document;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- closeMenuButton = document.querySelector( '.toggle.close-nav-toggle' );
- mobileMenu = document.querySelector( '.mobile-menu' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ _doc.addEventListener( 'keydown', function( event ) {
+ var clickedEl = twentytwenty.toggles.clickedEl,
+ toggleTarget, modal, selectors, elements, menuType, bottomMenu, activeEl, lastEl, firstEl, tabKey, shiftKey;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( mobileMenu ) {
- return false;
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( clickedEl && _doc.body.classList.contains( 'showing-modal' ) ) {
+ toggleTarget = clickedEl.dataset.toggleTarget;
+ selectors = 'input, a, button';
+ modal = _doc.querySelector( toggleTarget );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- isDesktop = window.getComputedStyle( mobileMenu, null ).getPropertyValue( 'display' ) === 'none';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ elements = modal.querySelectorAll( selectors );
+ elements = Array.prototype.slice.call( elements );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- menuLinks = isDesktop ?
- document.querySelectorAll( '.menu-modal .expanded-menu .modal-menu li' ) :
- document.querySelectorAll( '.menu-modal .mobile-menu .modal-menu li' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( '.menu-modal' === toggleTarget ) {
+ menuType = window.matchMedia( '(min-width: 1000px)' ).matches;
+ menuType = menuType ? '.expanded-menu' : '.mobile-menu';
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- firstLevelmenuLinks = isDesktop ?
- document.querySelectorAll( '.menu-modal .expanded-menu .modal-menu > li' ) :
- document.querySelectorAll( '.menu-modal .mobile-menu .modal-menu > li' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ elements = elements.filter( function( element ) {
+ return null !== element.closest( menuType ) && null !== element.offsetParent;
+ } );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( firstLevelmenuLinks ) {
- return false;
- }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ elements.unshift( _doc.querySelector( '.close-nav-toggle' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- lastMenuLinkToggleButton = firstLevelmenuLinks[firstLevelmenuLinks.length - 1].querySelector( '.sub-menu-toggle' ) || undefined;
- lastMenuLinkHasSubClosedMenu = lastMenuLinkToggleButton && ! lastMenuLinkToggleButton.classList.contains( 'active' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ bottomMenu = _doc.querySelector( '.menu-bottom > nav' );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- lastToogleSubMenuLinkNotOpened = isDesktop ?
- document.querySelector( '.menu-modal .expanded-menu .modal-menu .sub-menu .sub-menu-toggle:not(.active)' ) :
- document.querySelector( '.menu-modal .mobile-menu .sub-menu .sub-menu-toggle:not(.active)' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( bottomMenu ) {
+ bottomMenu.querySelectorAll( selectors ).forEach( function( element ) {
+ elements.push( element );
+ } );
+ }
+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- socialLinks = document.querySelectorAll( '.menu-modal .social-menu li' );
- hasSocialMenu = document.querySelectorAll( '.menu-modal .social-menu' ).length > 0;
- lastModalMenuItems = hasSocialMenu ? socialLinks : menuLinks;
- focusedElementParentLi = twentytwentyFindParents( event.target, 'li' );
- focusedElementIsInsideModal = twentytwentyFindParents( event.target, '.menu-modal' ).length > 0;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ lastEl = elements[ elements.length - 1 ];
+ firstEl = elements[0];
+ activeEl = _doc.activeElement;
+ tabKey = event.keyCode === 9;
+ shiftKey = event.shiftKey;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- lastMenuItem = lastModalMenuItems[lastModalMenuItems.length - 1];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( ! shiftKey && tabKey && lastEl === activeEl ) {
+ event.preventDefault();
+ firstEl.focus();
+ }
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- isFirstModalItem = event.target === closeMenuButton;
-
- isLastModalItem = focusedElementIsInsideModal && focusedElementParentLi[0] ?
- focusedElementParentLi[0].className === lastMenuItem.className :
- undefined;
-
- if ( lastMenuLinkToggleButton && lastMenuLinkHasSubClosedMenu && ! hasSocialMenu ) { // Last 1st level item has submenu and is closed
- isLastModalItem = event.target === lastMenuLinkToggleButton;
- lastMenuItem = lastMenuLinkToggleButton;
- }
- if ( lastMenuLinkToggleButton && ! lastMenuLinkHasSubClosedMenu && ! hasSocialMenu ) { // Last 1st level item has submenu is opened
- isLastModalItem = event.target === lastToogleSubMenuLinkNotOpened || event.target === menuLinks[menuLinks.length - 1].querySelector( 'a' );
- lastMenuItem = lastToogleSubMenuLinkNotOpened || menuLinks[menuLinks.length - 1].querySelector( 'a' );
- }
-
- if ( ! event.shiftKey && event.key === 'Tab' && isLastModalItem ) {
- // Forward
- event.preventDefault();
- closeMenuButton.focus();
- }
- if ( event.shiftKey && event.key === 'Tab' && isFirstModalItem ) {
- // Backward
- event.preventDefault();
- if ( lastMenuItem.querySelector( 'a' ) ) {
- lastMenuItem.querySelector( 'a' ).focus();
- } else {
- lastMenuItem.focus();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( shiftKey && tabKey && firstEl === activeEl ) {
+ event.preventDefault();
+ lastEl.focus();
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> } );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -645,9 +627,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Toggle aria-expanded on the toggle
</span><span class="cx" style="display: block; padding: 0 10px"> twentytwentyToggleAttribute( toggle, 'aria-expanded', 'true', 'false' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( self.clickedEl && -1 !== toggle.getAttribute( 'class' ).indexOf( 'close-' ) ) {
+ twentytwentyToggleAttribute( self.clickedEl, 'aria-expanded', 'true', 'false' );
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> // Toggle body class
</span><span class="cx" style="display: block; padding: 0 10px"> if ( toggle.dataset.toggleBodyClass ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- _doc.querySelector( 'body' ).classList.toggle( toggle.dataset.toggleBodyClass );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ _doc.body.classList.toggle( toggle.dataset.toggleBodyClass );
</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"> // Check whether to set focus
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -777,7 +763,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( falseVal === undefined ) {
</span><span class="cx" style="display: block; padding: 0 10px"> falseVal = false;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( element[ attribute ] !== trueVal ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( element.getAttribute( attribute ) !== trueVal ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> element.setAttribute( attribute, trueVal );
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> element.setAttribute( attribute, falseVal );
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyclassesclasstwentytwentycustomizephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -26,6 +26,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
</span><span class="cx" style="display: block; padding: 0 10px"> $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Removes the background image section.
+ * The theme only supports the background color option.
+ */
+ $wp_customize->remove_section( 'background_image' );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $wp_customize->selective_refresh->add_partial(
</span><span class="cx" style="display: block; padding: 0 10px"> 'blogname',
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/functions.php 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/functions.php 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -459,7 +459,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'name' => _x( 'Large', 'Name of the large font size in the block editor', 'twentytwenty' ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'shortName' => _x( 'L', 'Short name of the large font size in the block editor.', 'twentytwenty' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'size' => 24,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'size' => 26.25,
</ins><span class="cx" style="display: block; padding: 0 10px"> 'slug' => 'large',
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -482,20 +482,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'after_setup_theme', 'twentytwenty_block_editor_settings' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Read More Link
- * Overwrite default (more ...) tag
- */
-function twentytwenty_read_more_tag() {
- return sprintf(
- '<a href="%1$s" class="more-link faux-button">%2$s <span class="screen-reader-text">"%3$s"</span></a>',
- esc_url( get_permalink( get_the_ID() ) ),
- __( 'Continue reading', 'twentytwenty' ),
- esc_html( get_the_title( get_the_ID() ) )
- );
-}
-add_filter( 'the_content_more_link', 'twentytwenty_read_more_tag' );
-
-/**
</del><span class="cx" style="display: block; padding: 0 10px"> * Enqueues scripts for customizer controls & settings.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.0.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -647,7 +633,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'background' => array( '.social-icons a', '#site-footer button:not(.toggle)', '#site-footer .button', '#site-footer .faux-button', '#site-footer .wp-block-button__link', '#site-footer .wp-block-file__button', '#site-footer input[type="button"]', '#site-footer input[type="reset"]', '#site-footer input[type="submit"]' ),
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'background' => array(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'color' => array( '.social-icons a', '.overlay-header .header-inner', 'body:not(.overlay-header) .primary-menu ul', '.header-footer-group button', '.header-footer-group .button', '.header-footer-group .faux-button', '.header-footer-group .wp-block-button:not(.is-style-outline) .wp-block-button__link', '.header-footer-group .wp-block-file__button', '.header-footer-group input[type="button"]', '.header-footer-group input[type="reset"]', '.header-footer-group input[type="submit"]' ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'color' => array( '.social-icons a', 'body:not(.overlay-header) .primary-menu ul', '.header-footer-group button', '.header-footer-group .button', '.header-footer-group .faux-button', '.header-footer-group .wp-block-button:not(.is-style-outline) .wp-block-button__link', '.header-footer-group .wp-block-file__button', '.header-footer-group input[type="button"]', '.header-footer-group input[type="reset"]', '.header-footer-group input[type="submit"]' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> 'background' => array( '#site-header', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal', '.menu-modal-inner', '.search-modal-inner', '.archive-header', '.singular .entry-header', '.singular .featured-media:before', '.wp-block-pullquote:before' ),
</span><span class="cx" style="display: block; padding: 0 10px"> ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'text' => array(
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyheaderphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/header.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/header.php 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/header.php 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -121,38 +121,31 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $header_toggles_classes = '';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( true === $enable_header_search || has_nav_menu( 'expanded' ) ) {
+ ?>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( ! has_nav_menu( 'expanded' ) && false === $enable_header_search ) {
- $header_toggles_classes .= ' hide-on-desktop';
- }
- ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <div class="header-toggles hide-no-js">
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <div class="header-toggles hide-no-js<?php echo $header_toggles_classes; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>">
-
</del><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $nav_toggle_wrapper_classes = '';
-
- // Add a class indicating whether the navigation toggle wrapper can be hidden on desktop.
</del><span class="cx" style="display: block; padding: 0 10px"> if ( has_nav_menu( 'expanded' ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $nav_toggle_wrapper_classes .= ' has-expanded-menu';
- }
- ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ ?>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <div class="toggle-wrapper nav-toggle-wrapper<?php echo $nav_toggle_wrapper_classes; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>">
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <div class="toggle-wrapper nav-toggle-wrapper has-expanded-menu">
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <button class="toggle nav-toggle desktop-nav-toggle" data-toggle-target=".menu-modal" data-toggle-body-class="showing-menu-modal" aria-expanded="false" data-set-focus=".close-nav-toggle">
- <span class="toggle-inner">
- <span class="toggle-text"><?php _e( 'Menu', 'twentytwenty' ); ?></span>
- <span class="toggle-icon">
- <?php twentytwenty_the_theme_svg( 'ellipsis' ); ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <button class="toggle nav-toggle desktop-nav-toggle" data-toggle-target=".menu-modal" data-toggle-body-class="showing-menu-modal" aria-expanded="false" data-set-focus=".close-nav-toggle">
+ <span class="toggle-inner">
+ <span class="toggle-text"><?php _e( 'Menu', 'twentytwenty' ); ?></span>
+ <span class="toggle-icon">
+ <?php twentytwenty_the_theme_svg( 'ellipsis' ); ?>
+ </span>
</ins><span class="cx" style="display: block; padding: 0 10px"> </span>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- </span>
- </button><!-- .nav-toggle -->
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ </button><!-- .nav-toggle -->
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- </div><!-- .nav-toggle-wrapper -->
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ </div><!-- .nav-toggle-wrapper -->
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( true === $enable_header_search ) {
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -171,7 +164,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- </div><!-- .header-toggles -->
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ </div><!-- .header-toggles -->
+ <?php
+ }
+ ?>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> </div><!-- .header-navigation-wrapper -->
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentystylertlcss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/style-rtl.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/style-rtl.css 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/style-rtl.css 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -257,7 +257,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: normal;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(./assets/fonts/inter/Inter-upright.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-display: swap;
+ src: url(./assets/fonts/inter/Inter-upright-var.woff2) format("woff2");
</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"> @font-face {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -264,7 +265,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: italic;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(./assets/fonts/inter/Inter-italic.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-display: swap;
+ src: url(./assets/fonts/inter/Inter-italic-var.woff2) format("woff2");
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -534,11 +536,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> blockquote {
</span><span class="cx" style="display: block; padding: 0 10px"> border-color: #cd2653;
</span><span class="cx" style="display: block; padding: 0 10px"> border-style: solid;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-width: 0 0.2rem 0 0;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-width: 0 0 0 0.2rem;
</ins><span class="cx" style="display: block; padding: 0 10px"> color: inherit;
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 1em;
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 4rem 0;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- padding: 0.5rem 2rem 0.5rem 0;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ padding: 0.5rem 0 0.5rem 2rem;
</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"> cite {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1560,7 +1562,8 @@
</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"> .primary-menu a:hover,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.primary-menu a:focus {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.primary-menu a:focus,
+.primary-menu .current_page_ancestor {
</ins><span class="cx" style="display: block; padding: 0 10px"> text-decoration: underline;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1666,12 +1669,15 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .primary-menu ul ul::after {
</span><span class="cx" style="display: block; padding: 0 10px"> border-bottom-color: transparent;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-right-color: #000;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-left-color: #000;
</ins><span class="cx" style="display: block; padding: 0 10px"> bottom: auto;
</span><span class="cx" style="display: block; padding: 0 10px"> left: -1.6rem;
</span><span class="cx" style="display: block; padding: 0 10px"> top: 2rem;
</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">+.rtl .primary-menu ul ul::after {
+ transform: rotate(-180deg);
+}
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* -------------------------------------------------------------------------- */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1800,7 +1806,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .modal-menu a:focus,
</span><span class="cx" style="display: block; padding: 0 10px"> .modal-menu a:hover,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.modal-menu li.current-menu-item > .ancestor-wrapper > a {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.modal-menu li.current-menu-item > .ancestor-wrapper > a,
+.modal-menu li.current_page_ancestor > .ancestor-wrapper > a {
</ins><span class="cx" style="display: block; padding: 0 10px"> text-decoration: underline;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2613,7 +2620,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /* Block Typography Classes ------------------ */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .has-text-align-left {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- text-align: right;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ text-align: left;
</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"> .has-text-align-center {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3171,8 +3178,8 @@
</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"> .wp-block-quote[style="text-align:right"] {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-width: 0 0 0 0.2rem;
- padding: 0 0 0 2rem;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ border-width: 0 0.2rem 0 0;
+ padding: 0 2rem 0 0;
</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"> /* STYLE: LARGE */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4012,7 +4019,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Widget: RSS ------------------------------- */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.widget_rss a.rsswidget:first-of-type {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.widget_rss .widget-title a.rsswidget:first-of-type {
</ins><span class="cx" style="display: block; padding: 0 10px"> display: none;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4992,6 +4999,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> margin-top: 4rem;
</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">+ .alignleft {
+ margin: 0.3rem 0 2rem 2rem;
+ }
+
+ .alignright {
+ margin: 0.3rem 2rem 2rem 0;
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> .alignwide,
</span><span class="cx" style="display: block; padding: 0 10px"> .alignfull {
</span><span class="cx" style="display: block; padding: 0 10px"> margin-bottom: 6rem;
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentystylecss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/style.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/style.css 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/style.css 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -257,7 +257,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: normal;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(./assets/fonts/inter/Inter-upright.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-display: swap;
+ src: url(./assets/fonts/inter/Inter-upright-var.woff2) format("woff2");
</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"> @font-face {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -264,7 +265,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> font-family: "Inter var";
</span><span class="cx" style="display: block; padding: 0 10px"> font-weight: 100 900; /* stylelint-disable-line font-weight-notation */
</span><span class="cx" style="display: block; padding: 0 10px"> font-style: italic;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- src: url(./assets/fonts/inter/Inter-italic.var.woff2) format("woff2");
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-display: swap;
+ src: url(./assets/fonts/inter/Inter-italic-var.woff2) format("woff2");
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -534,10 +536,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> blockquote {
</span><span class="cx" style="display: block; padding: 0 10px"> border-color: #cd2653;
</span><span class="cx" style="display: block; padding: 0 10px"> border-style: solid;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /*rtl:ignore*/
</ins><span class="cx" style="display: block; padding: 0 10px"> border-width: 0 0 0 0.2rem;
</span><span class="cx" style="display: block; padding: 0 10px"> color: inherit;
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 1em;
</span><span class="cx" style="display: block; padding: 0 10px"> margin: 4rem 0;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /*rtl:ignore*/
</ins><span class="cx" style="display: block; padding: 0 10px"> padding: 0.5rem 0 0.5rem 2rem;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1562,7 +1568,8 @@
</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"> .primary-menu a:hover,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.primary-menu a:focus {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.primary-menu a:focus,
+.primary-menu .current_page_ancestor {
</ins><span class="cx" style="display: block; padding: 0 10px"> text-decoration: underline;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1668,6 +1675,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .primary-menu ul ul::after {
</span><span class="cx" style="display: block; padding: 0 10px"> border-bottom-color: transparent;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /*rtl:ignore*/
</ins><span class="cx" style="display: block; padding: 0 10px"> border-left-color: #000;
</span><span class="cx" style="display: block; padding: 0 10px"> bottom: auto;
</span><span class="cx" style="display: block; padding: 0 10px"> right: -1.6rem;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1674,6 +1683,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> top: 2rem;
</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">+.rtl .primary-menu ul ul::after {
+ transform: rotate(180deg);
+}
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* -------------------------------------------------------------------------- */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1802,7 +1814,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .modal-menu a:focus,
</span><span class="cx" style="display: block; padding: 0 10px"> .modal-menu a:hover,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.modal-menu li.current-menu-item > .ancestor-wrapper > a {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.modal-menu li.current-menu-item > .ancestor-wrapper > a,
+.modal-menu li.current_page_ancestor > .ancestor-wrapper > a {
</ins><span class="cx" style="display: block; padding: 0 10px"> text-decoration: underline;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2615,6 +2628,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /* Block Typography Classes ------------------ */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .has-text-align-left {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /*rtl:ignore*/
</ins><span class="cx" style="display: block; padding: 0 10px"> text-align: left;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3173,8 +3188,12 @@
</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"> .wp-block-quote[style="text-align:right"] {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /*rtl:begin:ignore*/
</ins><span class="cx" style="display: block; padding: 0 10px"> border-width: 0 0.2rem 0 0;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0 2rem 0 0;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /*rtl:end:ignore*/
</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"> /* STYLE: LARGE */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4018,7 +4037,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Widget: RSS ------------------------------- */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.widget_rss a.rsswidget:first-of-type {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.widget_rss .widget-title a.rsswidget:first-of-type {
</ins><span class="cx" style="display: block; padding: 0 10px"> display: none;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5006,6 +5025,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> margin-top: 4rem;
</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">+ .alignleft {
+ margin: 0.3rem 2rem 2rem 0;
+ }
+
+ .alignright {
+ margin: 0.3rem 0 2rem 2rem;
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> .alignwide,
</span><span class="cx" style="display: block; padding: 0 10px"> .alignfull {
</span><span class="cx" style="display: block; padding: 0 10px"> margin-bottom: 6rem;
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentytemplatepartscontentcoverphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/template-parts/content-cover.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/template-parts/content-cover.php 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/template-parts/content-cover.php 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -166,7 +166,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Output comments wrapper if it's a post, or if comments are open,
</span><span class="cx" style="display: block; padding: 0 10px"> * or if there's a comment number – and check for password.
</span><span class="cx" style="display: block; padding: 0 10px"> * */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( ( 'post' === $post->post_type || comments_open() || get_comments_number() ) && ! post_password_required() ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( ( is_single() || is_page() ) && ( comments_open() || get_comments_number() ) && ! post_password_required() ) {
</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"> <div class="comments-wrapper section-inner">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentytemplatepartscontentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/template-parts/content.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/template-parts/content.php 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/template-parts/content.php 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -33,7 +33,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( is_search() || ! is_singular() && 'summary' === get_theme_mod( 'blog_content', 'full' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> the_excerpt();
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- the_content();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ the_content( sprintf( '<span class="faux-button">%1$s</span> <span class="screen-reader-text">"%2$s"</span>', __( 'Continue reading', 'twentytwenty' ), get_the_title() ) );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -75,7 +75,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Output comments wrapper if it's a post, or if comments are open,
</span><span class="cx" style="display: block; padding: 0 10px"> * or if there's a comment number – and check for password.
</span><span class="cx" style="display: block; padding: 0 10px"> * */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( ( 'post' === $post->post_type || comments_open() || get_comments_number() ) && ! post_password_required() ) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( ( is_single() || is_page() ) && ( comments_open() || get_comments_number() ) && ! post_password_required() ) {
</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"> <div class="comments-wrapper section-inner">
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentytemplatepartsmodalsearchphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwenty/template-parts/modal-search.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwenty/template-parts/modal-search.php 2019-10-15 17:21:50 UTC (rev 46550)
+++ trunk/src/wp-content/themes/twentytwenty/template-parts/modal-search.php 2019-10-15 18:45:02 UTC (rev 46551)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -22,7 +22,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <button class="toggle search-untoggle fill-children-current-color" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field">
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <button class="toggle search-untoggle close-search-toggle fill-children-current-color" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field">
</ins><span class="cx" style="display: block; padding: 0 10px"> <span class="screen-reader-text"><?php _e( 'Close search', 'twentytwenty' ); ?></span>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php twentytwenty_the_theme_svg( 'cross' ); ?>
</span><span class="cx" style="display: block; padding: 0 10px"> </button><!-- .search-toggle -->
</span></span></pre>
</div>
</div>
</body>
</html>