Making WordPress.org

Changeset 9783


Ignore:
Timestamp:
04/28/2020 06:37:24 AM (7 years ago)
Author:
dd32
Message:

Bad requests: The author parameter doesn't support arrays.
See ​https://core.trac.wordpress.org/ticket/17737#comment:42

File:
1 edited

Legend:

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

    r9779 r9783  
    4040        // Assumption: WP::$public_query_vars will only ever contain non-array query vars.
    4141        // Assumption invalid. Some fields are valid.
    42         $array_fields = [ 'post_type' => true, 'cat' => true, 'author' => true ];
     42        $array_fields = [ 'post_type' => true, 'cat' => true ];
    4343
    4444        foreach ( (new \WP)->public_query_vars as $field ) {
Note: See TracChangeset for help on using the changeset viewer.