itthinx / groups

Groups provides group-based user membership management, group-based capabilities and content access control. It integrates standard WordPress capabilities and application-specific capabilities along with an extensive API.
GNU General Public License v3.0
49 stars 35 forks source link

Warning: Illegal offset type #73

Closed WarrenMoore closed 7 years ago

WarrenMoore commented 7 years ago

See https://wordpress.org/support/topic/warning-illegal-offset-type-7/ for example.

The issue is that extend_for_orderby_groups_read and extend_for_filter_groups_read both run on front-end AJAX calls to admin-ajax.php, where post_type can be an array.

It's an easy fix as I can't see a need for this to run on AJAX calls at all, and I'll add a pull request for this.

proaktion commented 7 years ago

Resolved in 2.2.0

See also https://github.com/itthinx/groups/pull/74