wp-papi / papi

:rocket: WordPress Page Type API with custom fields
https://wp-papi.github.io
MIT License
263 stars 32 forks source link

[bug] - dot files #193

Closed nlemoine closed 8 years ago

nlemoine commented 8 years ago

Bug description

Some weird characters are printed on every page (front and admin). Digging further, I noticed the content of .DS_Store was displayed. Looks like dot files are also parsed in directories: https://github.com/wp-papi/papi/blob/master/src/lib/core/io.php#L54-L64

What I expected

Skip dot files when parsing directories.

Steps to reproduce

frozzare commented 8 years ago

Thanks, never thought of this since I don't have dot files in the same folder as page types.

nlemoine commented 8 years ago

Never had before either. Thanks for the fix! 👍