Making WordPress.org


Ignore:
Timestamp:
02/08/2024 04:40:01 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: Enable the Community/Comercial filters on Search results.

See #2753, #7430.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-search.php

    r12942 r13190  
    202202                    'taxonomy.plugin_section.name' => [
    203203                        'value' => 'block'
     204                    ]
     205                ]
     206            ];
     207        }
     208
     209        if ( $query->get( 'plugin_business_model' ) ) {
     210            $es_query_args['filter']['and'][] = [
     211                'term' => [
     212                    'taxonomy.plugin_business_model.name' => [
     213                        'value' => $query->get( 'plugin_business_model' )
    204214                    ]
    205215                ]
Note: See TracChangeset for help on using the changeset viewer.