Skip to content
This repository has been archived by the owner on Jul 20, 2018. It is now read-only.

filter_files() in class-base-check.php should be able to accept an array of file types. #265

Open
emrikol opened this issue Mar 27, 2015 · 0 comments

Comments

@emrikol
Copy link
Contributor

emrikol commented Mar 27, 2015

When working on GitHub issue #255, I have ran into trouble because filter_files() only accepts one file type at a time.

This would require extra for loops and iterations for each extra file type.

A solution I have is to modify filter_files() to alternatively accept an array() as its $type parameter, iterate over each type in the array, and return all of the files at once.

A pull request with a proposed fix should follow shortly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant