<!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>[13785] sites/trunk/wordpress.org/public_html/wp-content: Learn: Sync with git WordPress/learn@2d8611f</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/13785">13785</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/13785","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-06-07 04:42:35 +0000 (Fri, 07 Jun 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@2d8611f</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnincadminphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/admin.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024functionsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/functions.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024patternsarchivecoursescontentphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/patterns/archive-courses-content.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024patternsarchivelessonscontentphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/patterns/archive-lessons-content.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024stylecss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/inc/</li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024incblockconfigphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/inc/block-config.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginswporglearnincadminphp"></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/inc/admin.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/inc/admin.php        2024-06-07 04:40:29 UTC (rev 13784)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/admin.php  2024-06-07 04:42:35 UTC (rev 13785)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -566,5 +566,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">                'screen_id' => 'edit-learning-pathway',
</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">+        $tabs['topics'] = array(
+               'label'     => __( 'Topics', 'wporg-learn' ),
+               'url'       => admin_url( 'edit-tags.php?taxonomy=topic&post_type=course' ),
+               'screen_id' => 'edit-topic',
+       );
+
</ins><span class="cx" style="display: block; padding: 0 10px">         return $tabs;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024functionsphp"></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/themes/pub/wporg-learn-2024/functions.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/themes/pub/wporg-learn-2024/functions.php        2024-06-07 04:40:29 UTC (rev 13784)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/functions.php  2024-06-07 04:42:35 UTC (rev 13785)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8,6 +8,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> require_once __DIR__ . '/src/learning-pathway-cards/index.php';
</span><span class="cx" style="display: block; padding: 0 10px"> require_once __DIR__ . '/src/search-results-context/index.php';
</span><span class="cx" style="display: block; padding: 0 10px"> require_once __DIR__ . '/src/upcoming-online-workshops/index.php';
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+require_once __DIR__ . '/inc/block-config.php';
</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">  * Actions and filters.
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024incblockconfigphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/inc/block-config.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/themes/pub/wporg-learn-2024/inc/block-config.php                         (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/inc/block-config.php   2024-06-07 04:42:35 UTC (rev 13785)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,287 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Set up configuration for dynamic blocks.
+ */
+
+namespace WordPressdotorg\Theme\Learn_2024\Block_Config;
+
+use function WPOrg_Learn\Post_Meta\{get_available_post_type_locales};
+
+add_filter( 'wporg_query_filter_options_language', __NAMESPACE__ . '\get_language_options' );
+add_filter( 'wporg_query_filter_options_level', __NAMESPACE__ . '\get_level_options' );
+add_filter( 'wporg_query_filter_options_topic', __NAMESPACE__ . '\get_topic_options' );
+add_action( 'pre_get_posts', __NAMESPACE__ . '\modify_query' );
+add_action( 'wporg_query_filter_in_form', __NAMESPACE__ . '\inject_other_filters' );
+
+/**
+ * Get the current URL.
+ *
+ * @return string The current URL.
+ */
+function get_current_url() {
+       global $wp;
+       return home_url( add_query_arg( array(), $wp->request ) );
+}
+
+/**
+ * Get the list of levels for the course and lesson filters.
+ *
+ * @param array $options The options for this filter.
+ * @return array New list of level options.
+ */
+function get_level_options( $options ) {
+       global $wp_query;
+       // Get top 10 levels ordered by count, not empty, filtered by post_type, then sort them alphabetically.
+       $object_ids = get_posts(
+               array(
+                       'post_type' => get_post_type(),
+                       'fields' => 'ids',
+                       'numberposts' => -1,
+                       'status' => 'publish',
+               )
+       );
+       $levels = get_terms(
+               array(
+                       'taxonomy' => 'level',
+                       'orderby' => 'count',
+                       'order' => 'DESC',
+                       'number' => 10,
+                       'hide_empty' => true,
+                       'object_ids' => $object_ids,
+               )
+       );
+       // If there are no levels, or less than 2, don't show the filter.
+       if ( empty( $levels ) || count( $levels ) < 2 ) {
+               return array();
+       }
+
+       usort(
+               $levels,
+               function ( $a, $b ) {
+                       return strcmp( strtolower( $a->name ), strtolower( $b->name ) );
+               }
+       );
+       // Move the level with value 'Any' to the top, if it exists.
+       $any_level = array_filter(
+               $levels,
+               function ( $level ) {
+                       return 'Any' === $level->name;
+               }
+       );
+       if ( ! empty( $any_level ) ) {
+               $target_key = key( $any_level );
+               $target_element = array( $target_key => $levels[ $target_key ] );
+
+               unset( $levels[ $target_key ] );
+
+               $levels = $target_element + $levels;
+       }
+
+       $selected = isset( $wp_query->query['wporg_lesson_level'] ) ? (array) $wp_query->query['wporg_lesson_level'] : array();
+       $count = count( $selected );
+       $label = sprintf(
+               /* translators: The dropdown label for filtering, %s is the selected term count. */
+               _n( 'Level <span>%s</span>', 'Level <span>%s</span>', $count, 'wporg-learn' ),
+               $count
+       );
+
+       return array(
+               'label' => $label,
+               'title' => __( 'Level', 'wporg-learn' ),
+               'key' => 'wporg_lesson_level',
+               'action' => get_current_url(),
+               'options' => array_combine( wp_list_pluck( $levels, 'slug' ), wp_list_pluck( $levels, 'name' ) ),
+               'selected' => $selected,
+       );
+}
+
+/**
+ * Get the list of topics for the course and lesson filters.
+ *
+ * @param array $options The options for this filter.
+ * @return array New list of topic options.
+ */
+function get_topic_options( $options ) {
+       global $wp_query;
+       // Get top 20 topics ordered by count, not empty, filtered by post_type, then sort them alphabetically.
+       $object_ids = get_posts(
+               array(
+                       'post_type' => get_post_type(),
+                       'fields' => 'ids',
+                       'numberposts' => -1,
+                       'status' => 'publish',
+               )
+       );
+       $topics = get_terms(
+               array(
+                       'taxonomy' => 'topic',
+                       'orderby' => 'count',
+                       'order' => 'DESC',
+                       'number' => 20,
+                       'hide_empty' => true,
+                       'object_ids' => $object_ids,
+               )
+       );
+       // If there are no topics, or less than 2, don't show the filter.
+       if ( empty( $topics ) || count( $topics ) < 2 ) {
+               return array();
+       }
+
+       usort(
+               $topics,
+               function ( $a, $b ) {
+                       return strcmp( strtolower( $a->name ), strtolower( $b->name ) );
+               }
+       );
+
+       $selected = isset( $wp_query->query['wporg_workshop_topic'] ) ? (array) $wp_query->query['wporg_workshop_topic'] : array();
+       $count = count( $selected );
+       $label = sprintf(
+               /* translators: The dropdown label for filtering, %s is the selected term count. */
+               _n( 'Topic <span>%s</span>', 'Topic <span>%s</span>', $count, 'wporg-learn' ),
+               $count
+       );
+
+       return array(
+               'label' => $label,
+               'title' => __( 'Topic', 'wporg-learn' ),
+               'key' => 'wporg_workshop_topic',
+               'action' => get_current_url(),
+               'options' => array_combine( wp_list_pluck( $topics, 'slug' ), wp_list_pluck( $topics, 'name' ) ),
+               'selected' => $selected,
+       );
+}
+
+
+/**
+ * Get the meta query values by key.
+ *
+ * @param WP_Query $query The query.
+ * @param string   $key The meta key.
+ * @return array   The meta query values.
+ */
+function get_meta_query_values_by_key( $query, $key ) {
+       if ( isset( $query->query_vars['meta_query'] ) ) {
+               $meta_query = $query->query_vars['meta_query'];
+
+               foreach ( $meta_query as $meta ) {
+                       if ( isset( $meta['key'] ) && $meta['key'] === $key && ! empty( $meta['value'] ) ) {
+                               return $meta['value'];
+                       }
+               }
+       }
+
+       return array();
+}
+
+/**
+ * Get the list of languages for the course and lesson filters.
+ *
+ * @param array $options The options for this filter.
+ * @return array New list of language options.
+ */
+function get_language_options( $options ) {
+       global $wp_query;
+
+       $languages = get_available_post_type_locales( 'language', get_post_type(), 'publish' );
+       // If there are no languages, or the only language is en_US, don't show the filter.
+       if ( empty( $languages ) || ( 1 === count( $languages ) && isset( $languages['en_US'] ) ) ) {
+               return array();
+       }
+       // Otherwise if there are other languages and en_US is not listed, add it to the top,
+       // as this is the default value for the meta field.
+       if ( ! isset( $languages['en_US'] ) ) {
+               $languages = array_merge( array( 'en_US' => 'English' ), $languages );
+       }
+
+       $selected = get_meta_query_values_by_key( $wp_query, 'language' );
+       $count = count( $selected );
+       $label = sprintf(
+               /* translators: The dropdown label for filtering, %s is the selected term count. */
+               _n( 'Language <span>%s</span>', 'Language <span>%s</span>', $count, 'wporg-learn' ),
+               $count
+       );
+
+       return array(
+               'label' => $label,
+               'title' => __( 'Language', 'wporg-learn' ),
+               'key' => 'language',
+               'action' => get_current_url(),
+               'options' => $languages,
+               'selected' => $selected,
+       );
+}
+
+/**
+ * Modify the query by adding meta query for language if set.
+ *
+ * @param WP_Query $query The query object.
+ */
+function modify_query( $query ) {
+       // Ensure this code runs only for the main query on archive pages
+       if ( ! is_admin() && $query->is_main_query() && $query->is_archive() ) {
+               if ( isset( $_GET['language'] ) && is_array( $_GET['language'] ) ) {
+                       $languages = array_map( 'sanitize_text_field', $_GET['language'] );
+
+                       $meta_query = array( 'relation' => 'OR' );
+
+                       $meta_query[] = array(
+                               'key'     => 'language',
+                               'value'   => $languages,
+                               'compare' => 'IN',
+                       );
+
+                       // If 'en_US' is included, include posts with no language defined
+                       // as this is the default value for the meta field.
+                       if ( in_array( 'en_US', $languages ) ) {
+                               $meta_query[] = array(
+                                       'key'     => 'language',
+                                       'compare' => 'NOT EXISTS',
+                               );
+                       }
+
+                       $query->set( 'meta_query', $meta_query );
+               }
+       }
+}
+
+/**
+ * Add in the other existing filters as hidden inputs in the filter form.
+ *
+ * Enables combining filters by building up the correct URL on submit,
+ * for example courses using a topic and a level:
+ *   ?wporg_workshop_topic[]=extending-wordpress&wporg_lesson_level[]=beginner`
+ *
+ * @param string $key The key for the current filter.
+ */
+function inject_other_filters( $key ) {
+       global $wp_query;
+
+       $query_vars = array( 'wporg_workshop_topic', 'wporg_lesson_level' );
+       foreach ( $query_vars as $query_var ) {
+               if ( ! isset( $wp_query->query[ $query_var ] ) ) {
+                       continue;
+               }
+               if ( $key === $query_var ) {
+                       continue;
+               }
+               $values = (array) $wp_query->query[ $query_var ];
+               foreach ( $values as $value ) {
+                       printf( '<input type="hidden" name="%s[]" value="%s" />', esc_attr( $query_var ), esc_attr( $value ) );
+               }
+       }
+
+       $meta_query_vars = array( 'language' );
+       foreach ( $meta_query_vars as $meta_query_var ) {
+               $values = (array) get_meta_query_values_by_key( $wp_query, $meta_query_var );
+               if ( empty( $values ) ) {
+                       continue;
+               }
+               if ( $key === $meta_query_var ) {
+                       continue;
+               }
+               foreach ( $values as $value ) {
+                       printf( '<input type="hidden" name="%s[]" value="%s" />', esc_attr( $meta_query_var ), esc_attr( $value ) );
+               }
+       }
+}
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/inc/block-config.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024patternsarchivecoursescontentphp"></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/themes/pub/wporg-learn-2024/patterns/archive-courses-content.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/themes/pub/wporg-learn-2024/patterns/archive-courses-content.php 2024-06-07 04:40:29 UTC (rev 13784)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/patterns/archive-courses-content.php   2024-06-07 04:42:35 UTC (rev 13785)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -19,14 +19,23 @@
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <!-- /wp:group -->
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|50"}}}} -->
-<div id="wporg-search" class="wp-block-group alignwide" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--50)">
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"},"style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|50"}}}} -->
+<div class="wp-block-group alignwide" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--50)">
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        <!-- wp:search {"label":"<?php esc_attr_e( 'Search', 'wporg-learn' ); ?>","showLabel":false,"placeholder":"<?php esc_attr_e( 'Search courses', 'wporg-learn' ); ?>","width":290,"widthUnit":"px","buttonText":"<?php esc_attr_e( 'Search', 'wporg-learn' ); ?>","buttonPosition":"button-inside","buttonUseIcon":true,"query":{"post_type":"course"}} /-->
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        <!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"flex","flexWrap":"nowrap"},"className":"wporg-query-filters"} -->
+       <div class="wp-block-group wporg-query-filters">
+               <!-- wp:wporg/query-filter {"key":"language"} /-->
+               <!-- wp:wporg/query-filter {"key":"topic"} /-->
+               <!-- wp:wporg/query-filter {"key":"level"} /-->
+       </div>
+       <!-- /wp:group -->
+
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <!-- /wp:group -->
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> <!-- wp:query {"queryId":1,"query":{"perPage":12,"postType":"course","courseFeatured":false,"inherit":true},"namespace":"wporg-learn/course-grid","align":"wide","className":"wporg-learn-course-grid"} -->
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="wp-block-query alignwide wporg-learn-course-grid">
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024patternsarchivelessonscontentphp"></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/themes/pub/wporg-learn-2024/patterns/archive-lessons-content.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/themes/pub/wporg-learn-2024/patterns/archive-lessons-content.php 2024-06-07 04:40:29 UTC (rev 13784)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/patterns/archive-lessons-content.php   2024-06-07 04:42:35 UTC (rev 13785)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -19,11 +19,19 @@
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <!-- /wp:group -->
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|50"}}}} -->
-<div id="wporg-search" class="wp-block-group alignwide" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--50)">
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"},"style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|50"}}}} -->
+<div class="wp-block-group alignwide" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--50)">
</ins><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        <!-- wp:search {"label":"<?php esc_attr_e( 'Search', 'wporg-learn' ); ?>","showLabel":false,"placeholder":"<?php esc_attr_e( 'Search lessons', 'wporg-learn' ); ?>","width":290,"widthUnit":"px","buttonText":"<?php esc_attr_e( 'Search', 'wporg-learn' ); ?>","buttonPosition":"button-inside","buttonUseIcon":true,"query":{"post_type":"lesson"}} /-->
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+        <!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"flex","flexWrap":"nowrap"},"className":"wporg-query-filters"} -->
+       <div class="wp-block-group wporg-query-filters">
+               <!-- wp:wporg/query-filter {"key":"language"} /-->
+               <!-- wp:wporg/query-filter {"key":"topic"} /-->
+               <!-- wp:wporg/query-filter {"key":"level"} /-->
+       </div>
+       <!-- /wp:group -->
+
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <!-- /wp:group -->
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporglearn2024stylecss"></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/themes/pub/wporg-learn-2024/style.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css    2024-06-07 04:40:29 UTC (rev 13784)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css      2024-06-07 04:42:35 UTC (rev 13785)
</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">  * Author: WordPress.org
</span><span class="cx" style="display: block; padding: 0 10px">  * Author URI: http://wordpress.org/
</span><span class="cx" style="display: block; padding: 0 10px">  * Description: A theme for learn.wordpress.org, built in 2024.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * Version: 1.0.0-052f794
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Version: 1.0.0-2fd397a
</ins><span class="cx" style="display: block; padding: 0 10px">  * License: GNU General Public License v2 or later
</span><span class="cx" style="display: block; padding: 0 10px">  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
</span><span class="cx" style="display: block; padding: 0 10px">  * Text Domain: wporg-learn
</span></span></pre>
</div>
</div>

</body>
</html>