The 'orderby' query var is a mixed var string|array, and the method PostType::sortSortableColumns assumes is a string when passing it to array_key_exists which expects a key of type int|string.
This pull request fixes the following PHP warning.
PHP Warning: array_key_exists(): The first argument should be either a string or an integer
Hi,
The
'orderby'
query var is a mixed varstring|array
, and the methodPostType::sortSortableColumns
assumes is a string when passing it toarray_key_exists
which expects a key of typeint|string
. This pull request fixes the following PHP warning.PHP Warning: array_key_exists(): The first argument should be either a string or an integer