Making WordPress.org


Ignore:
Timestamp:
07/10/2024 02:35:19 AM (23 months ago)
Author:
adamwood
Message:

Learn: Sync with git WordPress/learn@8655549

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/inc/block-config.php

    r13882 r13892  
    506506 * Enables combining filters by building up the correct URL on submit,
    507507 * for example courses using a topic and a level:
    508  *   ?wporg_workshop_topic[]=extending-wordpress&wporg_lesson_level[]=beginner`
     508 *   ?wporg_workshop_topic[]=extending-wordpress&wporg_lesson_level=beginner`
    509509 *
    510510 * @param string $key The key for the current filter.
     
    513513    global $wp_query;
    514514
    515     $single_query_vars = array( 'wporg_lesson_level', 'wporg_learning_pathway' );
     515    $single_query_vars = array( 'wporg_lesson_level', 'wporg_learning_pathway', 'post_type' );
    516516    foreach ( $single_query_vars as $single_query_var ) {
    517517        if ( ! isset( $wp_query->query[ $single_query_var ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.