Making WordPress.org

Changeset 12884


Ignore:
Timestamp:
09/14/2023 02:47:26 PM (3 years ago)
Author:
ryelle
Message:

Bad Requests: Allow the tag parameter to accept arrays.

Props tellyworth.
Fixes https://github.com/WordPress/wporg-showcase-2022/issues/150.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-bad-request.php

    r11637 r12884  
    5555        // Assumption: WP::$public_query_vars will only ever contain non-array query vars.
    5656        // Assumption invalid. Some fields are valid.
    57         $array_fields = [ 'post_type' => true, 'cat' => true ];
     57        $array_fields = [
     58                'post_type' => true,
     59                'cat' => true,
     60                'tag' => true,
     61        ];
    5862
    5963        // Some fields only accept numeric values.
Note: See TracChangeset for help on using the changeset viewer.