<!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>[13621] sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn: Learn: Sync with git WordPress/learn@9e81c21</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="http://meta.trac.wordpress.org/changeset/13621">13621</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/13621","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>adamwood</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2024-04-30 05:32:22 +0000 (Tue, 30 Apr 2024)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Learn: Sync with git WordPress/learn@9e81c21</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildlocalenoticeassetphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/locale-notice.asset.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildlocalenoticejs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/locale-notice.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsconstantsjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/constants.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjscoursedatasrceditjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/course-data/src/edit.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjscoursedatasrcindexjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/course-data/src/index.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsexpirationdateindexjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/expiration-date/index.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsformjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/form.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjshooksuseisblockinsidebarjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/hooks/use-is-block-in-sidebar.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslanguagemetaindexjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/language-meta/index.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslessonplanactionssrceditjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-actions/src/edit.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslessonplanactionssrcindexjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-actions/src/index.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslessonplandetailssrceditjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-details/src/edit.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslessonplandetailssrcindexjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-details/src/index.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslocalenoticejs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/locale-notice.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsutilsjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/utils.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopapplicationformsrceditjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-application-form/src/edit.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopapplicationformsrcindexjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-application-form/src/index.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopdetailssrceditjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/edit.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopdetailssrcindexjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/index.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildlocalenoticeassetphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/locale-notice.asset.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/locale-notice.asset.php 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/locale-notice.asset.php 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php return array('dependencies' => array(), 'version' => '75158a71213280929fbc');
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php return array('dependencies' => array(), 'version' => '6ab2c759f5f19a11f996');
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnbuildlocalenoticejs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/locale-notice.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/locale-notice.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/build/locale-notice.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-!function(e,o,i){"use strict";const c=e.WPOrgLearnLocaleNotice||{},n=o.extend(c,{$notice:o(),init(){n.$notice=o(".wporg-learn-locale-notice"),n.$notice.on("click",".wporg-learn-locale-notice-dismiss",(function(e){e.preventDefault(),n.dismissNotice()}))},dismissNotice(){n.$notice.fadeTo(100,0,(function(){n.$notice.slideUp(100,(function(){n.$notice.remove()}))})),i.set("wporg-learn-locale-notice-dismissed",!0,n.cookie.expires,n.cookie.cpath,n.cookie.domain,n.cookie.secure)}});o(document).ready((function(){n.init()}))}(window,jQuery,wpCookies);
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+!function(e,o,i){"use strict";const n=e.WPOrgLearnLocaleNotice||{},c=o.extend(n,{$notice:o(),init:function(){c.$notice=o(".wporg-learn-locale-notice"),c.$notice.on("click",".wporg-learn-locale-notice-dismiss",(function(e){e.preventDefault(),c.dismissNotice()}))},dismissNotice:function(){c.$notice.fadeTo(100,0,(function(){c.$notice.slideUp(100,(function(){c.$notice.remove()}))})),i.set("wporg-learn-locale-notice-dismissed",!0,c.cookie.expires,c.cookie.cpath,c.cookie.domain,c.cookie.secure)}});o(document).ready((function(){c.init()}))}(window,jQuery,wpCookies);
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsconstantsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/constants.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/constants.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/constants.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,12 +4,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> import { __ } from '@wordpress/i18n';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> export const errors = {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- BLOCK_SIDEBAR_TYPE_INCOMPATIBLE: __(
- 'Error: This block is not compatible with this sidebar.',
- 'wporg-learn'
- ),
- BLOCK_POST_TYPE_INCOMPATIBLE: __(
- 'Error: This block is not compatible with this post type.',
- 'wporg-learn'
- ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ BLOCK_SIDEBAR_TYPE_INCOMPATIBLE: __( 'Error: This block is not compatible with this sidebar.', 'wporg-learn' ),
+ BLOCK_POST_TYPE_INCOMPATIBLE: __( 'Error: This block is not compatible with this post type.', 'wporg-learn' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> };
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjscoursedatasrceditjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/course-data/src/edit.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/course-data/src/edit.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/course-data/src/edit.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,7 +4,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> import { __ } from '@wordpress/i18n';
</span><span class="cx" style="display: block; padding: 0 10px"> import { Placeholder } from '@wordpress/components';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-import { useIsBlockInSidebar, useGetCurrentPostType } from '../../hooks';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import { useGetCurrentPostType, useIsBlockInSidebar } from '../../hooks';
</ins><span class="cx" style="display: block; padding: 0 10px"> import { getBlockPlaceholderMessage } from '../../utils';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> export default function Edit( { clientId } ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,10 +12,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'lesson-plan',
</span><span class="cx" style="display: block; padding: 0 10px"> useGetCurrentPostType(),
</span><span class="cx" style="display: block; padding: 0 10px"> useIsBlockInSidebar( clientId, 'wporg-learn-courses' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- __(
- 'This will be dynamically populated based on the current course data.',
- 'wporg-learn'
- )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ __( 'This will be dynamically populated based on the current course data.', 'wporg-learn' )
</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"> return (
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjscoursedatasrcindexjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/course-data/src/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/course-data/src/index.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/course-data/src/index.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -43,10 +43,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * This is a short description for your block, can be translated with `i18n` functions.
</span><span class="cx" style="display: block; padding: 0 10px"> * It will be shown in the Block Tab in the Settings Sidebar.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- description: __(
- 'Show average learner details for the course.',
- 'wporg-learn'
- ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ description: __( 'Show average learner details for the course.', 'wporg-learn' ),
</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"> * Blocks are grouped into categories to help users browse and discover them.
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsexpirationdateindexjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/expiration-date/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/expiration-date/index.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/expiration-date/index.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,17 +1,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * WordPress dependencies
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-import {
- Button,
- DateTimePicker,
- Dropdown,
- PanelRow,
-} from '@wordpress/components';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import { Button, DateTimePicker, Dropdown, PanelRow } from '@wordpress/components';
</ins><span class="cx" style="display: block; padding: 0 10px"> import { useDispatch, useSelect } from '@wordpress/data';
</span><span class="cx" style="display: block; padding: 0 10px"> // eslint-disable-next-line @wordpress/no-unsafe-wp-apis -- Experimental is OK.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-import { format, __experimentalGetSettings } from '@wordpress/date';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import { __experimentalGetSettings, format } from '@wordpress/date';
</ins><span class="cx" style="display: block; padding: 0 10px"> import { PluginPostStatusInfo } from '@wordpress/edit-post';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-import { useState, useRef } from '@wordpress/element';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import { useRef, useState } from '@wordpress/element';
</ins><span class="cx" style="display: block; padding: 0 10px"> import { __ } from '@wordpress/i18n';
</span><span class="cx" style="display: block; padding: 0 10px"> import { registerPlugin } from '@wordpress/plugins';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -18,18 +13,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function ExpirationLabel( { date } ) {
</span><span class="cx" style="display: block; padding: 0 10px"> const settings = __experimentalGetSettings();
</span><span class="cx" style="display: block; padding: 0 10px"> return date
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- ? format(
- `${ settings.formats.date } ${ settings.formats.time }`,
- date
- )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ ? format( `${ settings.formats.date } ${ settings.formats.time }`, date )
</ins><span class="cx" style="display: block; padding: 0 10px"> : __( 'No expiration date', 'wporg-learn' );
</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"> const ExpirationDate = () => {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const postMetaData = useSelect(
- ( select ) =>
- select( 'core/editor' ).getEditedPostAttribute( 'meta' ) || {}
- );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const postMetaData = useSelect( ( select ) => select( 'core/editor' ).getEditedPostAttribute( 'meta' ) || {} );
</ins><span class="cx" style="display: block; padding: 0 10px"> const { editPost } = useDispatch( 'core/editor' );
</span><span class="cx" style="display: block; padding: 0 10px"> const [ expDate, setExpDate ] = useState( postMetaData?.expiration_date );
</span><span class="cx" style="display: block; padding: 0 10px"> const anchorRef = useRef();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -77,8 +66,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">- const { ownerDocument } =
- pickerRef.current;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const { ownerDocument } = pickerRef.current;
</ins><span class="cx" style="display: block; padding: 0 10px"> ownerDocument.activeElement.blur();
</span><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="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsformjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/form.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/form.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/form.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,5 +1,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> const jQuery = window.jQuery || {};
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+// eslint-disable-next-line id-length
</ins><span class="cx" style="display: block; padding: 0 10px"> ( ( $ ) => {
</span><span class="cx" style="display: block; padding: 0 10px"> const checkOther = document.querySelectorAll( '.checkbox-and-text' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,10 +8,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> const checkbox = container.querySelector( 'input[type="checkbox"]' ),
</span><span class="cx" style="display: block; padding: 0 10px"> text = container.querySelector( 'input[type="text"]' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- text.addEventListener(
- 'input',
- ( event ) => ( checkbox.checked = !! event.target.value )
- );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ text.addEventListener( 'input', ( event ) => ( checkbox.checked = !! event.target.value ) );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> checkbox.addEventListener( 'change', ( event ) => {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( event.target.checked ) {
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjshooksuseisblockinsidebarjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/hooks/use-is-block-in-sidebar.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/hooks/use-is-block-in-sidebar.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/hooks/use-is-block-in-sidebar.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5,8 +5,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> export const useIsBlockInSidebar = ( clientId, sidebarName ) => {
</span><span class="cx" style="display: block; padding: 0 10px"> return useSelect( ( select ) => {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const { getBlockAttributes, getBlockName, getBlockParents } =
- select( 'core/block-editor' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const { getBlockAttributes, getBlockName, getBlockParents } = select( 'core/block-editor' );
</ins><span class="cx" style="display: block; padding: 0 10px"> const parents = getBlockParents( clientId );
</span><span class="cx" style="display: block; padding: 0 10px"> return parents.some( ( parent ) => {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'core/widget-area' !== getBlockName( parent ) ) {
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslanguagemetaindexjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/language-meta/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/language-meta/index.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/language-meta/index.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -14,10 +14,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> const locales = wporgLearnLocales;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> const LanguageMeta = () => {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const postMetaData = useSelect(
- ( select ) =>
- select( 'core/editor' ).getEditedPostAttribute( 'meta' ) || {}
- );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const postMetaData = useSelect( ( select ) => select( 'core/editor' ).getEditedPostAttribute( 'meta' ) || {} );
</ins><span class="cx" style="display: block; padding: 0 10px"> const { editPost } = useDispatch( 'core/editor' );
</span><span class="cx" style="display: block; padding: 0 10px"> const [ language, setLanguage ] = useState( postMetaData?.language );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslessonplanactionssrceditjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-actions/src/edit.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-actions/src/edit.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-actions/src/edit.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,7 +4,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> import { __ } from '@wordpress/i18n';
</span><span class="cx" style="display: block; padding: 0 10px"> import { Placeholder } from '@wordpress/components';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-import { useIsBlockInSidebar, useGetCurrentPostType } from '../../hooks';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import { useGetCurrentPostType, useIsBlockInSidebar } from '../../hooks';
</ins><span class="cx" style="display: block; padding: 0 10px"> import { getBlockPlaceholderMessage } from '../../utils';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> export default function Edit( { clientId } ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12,10 +12,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'lesson-plan',
</span><span class="cx" style="display: block; padding: 0 10px"> useGetCurrentPostType(),
</span><span class="cx" style="display: block; padding: 0 10px"> useIsBlockInSidebar( clientId, 'wporg-learn-lesson-plans' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- __(
- 'This will be dynamically populated based on media attached to the Lesson Plan.',
- 'wporg-learn'
- )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ __( 'This will be dynamically populated based on media attached to the Lesson Plan.', 'wporg-learn' )
</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"> return (
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslessonplanactionssrcindexjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-actions/src/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-actions/src/index.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-actions/src/index.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -43,10 +43,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * This is a short description for your block, can be translated with `i18n` functions.
</span><span class="cx" style="display: block; padding: 0 10px"> * It will be shown in the Block Tab in the Settings Sidebar.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- description: __(
- 'Show actions for the Lesson Plan, depending on post media.',
- 'wporg-learn'
- ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ description: __( 'Show actions for the Lesson Plan, depending on post media.', 'wporg-learn' ),
</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"> * Blocks are grouped into categories to help users browse and discover them.
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslessonplandetailssrceditjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-details/src/edit.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-details/src/edit.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-details/src/edit.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,7 +4,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> import { __ } from '@wordpress/i18n';
</span><span class="cx" style="display: block; padding: 0 10px"> import { Placeholder } from '@wordpress/components';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-import { useIsBlockInSidebar, useGetCurrentPostType } from '../../hooks';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import { useGetCurrentPostType, useIsBlockInSidebar } from '../../hooks';
</ins><span class="cx" style="display: block; padding: 0 10px"> import { getBlockPlaceholderMessage } from '../../utils';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> export default function Edit( { clientId } ) {
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslessonplandetailssrcindexjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-details/src/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-details/src/index.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/lesson-plan-details/src/index.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -43,10 +43,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * This is a short description for your block, can be translated with `i18n` functions.
</span><span class="cx" style="display: block; padding: 0 10px"> * It will be shown in the Block Tab in the Settings Sidebar.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- description: __(
- 'Show details about the Lesson Plan, pulled from post meta.',
- 'wporg-learn'
- ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ description: __( 'Show details about the Lesson Plan, pulled from post meta.', 'wporg-learn' ),
</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"> * Blocks are grouped into categories to help users browse and discover them.
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjslocalenoticejs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/locale-notice.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/locale-notice.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/locale-notice.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,4 +1,5 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /* global jQuery, wpCookies */
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+// eslint-disable-next-line id-length
</ins><span class="cx" style="display: block; padding: 0 10px"> ( function ( window, $, wpCookies ) {
</span><span class="cx" style="display: block; padding: 0 10px"> 'use strict';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,20 +8,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> const app = $.extend( localeNotice, {
</span><span class="cx" style="display: block; padding: 0 10px"> $notice: $(),
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- init() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ init: function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> app.$notice = $( '.wporg-learn-locale-notice' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- app.$notice.on(
- 'click',
- '.wporg-learn-locale-notice-dismiss',
- function ( event ) {
- event.preventDefault();
- app.dismissNotice();
- }
- );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ app.$notice.on( 'click', '.wporg-learn-locale-notice-dismiss', function ( event ) {
+ event.preventDefault();
+ app.dismissNotice();
+ } );
</ins><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">- dismissNotice() {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ dismissNotice: function () {
</ins><span class="cx" style="display: block; padding: 0 10px"> app.$notice.fadeTo( 100, 0, function () {
</span><span class="cx" style="display: block; padding: 0 10px"> app.$notice.slideUp( 100, function () {
</span><span class="cx" style="display: block; padding: 0 10px"> app.$notice.remove();
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsutilsjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/utils.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/utils.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/utils.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,11 +1,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> import { errors } from './constants';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-export const getBlockPlaceholderMessage = (
- blockPostType,
- currentPostType,
- isBlockInSidebar,
- defaultMessage
-) => {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+export const getBlockPlaceholderMessage = ( blockPostType, currentPostType, isBlockInSidebar, defaultMessage ) => {
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( currentPostType === null ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! isBlockInSidebar ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return errors.BLOCK_SIDEBAR_TYPE_INCOMPATIBLE;
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopapplicationformsrceditjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-application-form/src/edit.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-application-form/src/edit.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-application-form/src/edit.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8,10 +8,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return (
</span><span class="cx" style="display: block; padding: 0 10px"> <Placeholder
</span><span class="cx" style="display: block; padding: 0 10px"> label={ __( 'Workshop Application Form', 'wporg-learn' ) }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- instructions={ __(
- 'This will render a form on the front end.',
- 'wporg-learn'
- ) }
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ instructions={ __( 'This will render a form on the front end.', 'wporg-learn' ) }
</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>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopapplicationformsrcindexjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-application-form/src/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-application-form/src/index.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-application-form/src/index.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,10 +11,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> registerBlockType( 'wporg-learn/workshop-application-form', {
</span><span class="cx" style="display: block; padding: 0 10px"> title: __( 'Workshop Application Form', 'wporg-learn' ),
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- description: __(
- 'Render a form for applying to present a workshop.',
- 'wporg-learn'
- ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ description: __( 'Render a form for applying to present a workshop.', 'wporg-learn' ),
</ins><span class="cx" style="display: block; padding: 0 10px"> category: 'widgets',
</span><span class="cx" style="display: block; padding: 0 10px"> icon: 'forms',
</span><span class="cx" style="display: block; padding: 0 10px"> supports: {
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopdetailssrceditjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/edit.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/edit.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/edit.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4,7 +4,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> import { __ } from '@wordpress/i18n';
</span><span class="cx" style="display: block; padding: 0 10px"> import { Placeholder } from '@wordpress/components';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-import { useIsBlockInSidebar, useGetCurrentPostType } from '../../hooks';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+import { useGetCurrentPostType, useIsBlockInSidebar } from '../../hooks';
</ins><span class="cx" style="display: block; padding: 0 10px"> import { getBlockPlaceholderMessage } from '../../utils';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> export default function Edit( { clientId } ) {
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnjsworkshopdetailssrcindexjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/index.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/index.js 2024-04-30 05:26:07 UTC (rev 13620)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/js/workshop-details/src/index.js 2024-04-30 05:32:22 UTC (rev 13621)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -42,10 +42,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * This is a short description for your block, can be translated with `i18n` functions.
</span><span class="cx" style="display: block; padding: 0 10px"> * It will be shown in the Block Tab in the Settings Sidebar.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- description: __(
- 'Show details about the workshop, pulled from post meta.',
- 'wporg-learn'
- ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ description: __( 'Show details about the workshop, pulled from post meta.', 'wporg-learn' ),
</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"> * Blocks are grouped into categories to help users browse and discover them.
</span></span></pre>
</div>
</div>
</body>
</html>