Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure $posttypes is an array #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gwire
Copy link

@gwire gwire commented Jan 7, 2020

$posttypes should always be an array since a count() is applied

A request for GET /workshops/?filter=workshop&pg=0 will result in the warning

PHP Warning:  count(): Parameter must be an array or an object that implements Countable in .../wp-content/themes/virt-eu/page-roll.php on line 76

posttypes should always be an array since a count is applied
@gwire gwire changed the title make sure posttypes is an array Ensure $posttypes is an array Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant