picandocodigo / List-Category-Posts

WordPress plugin which allows you to list posts from a category into a post/page using the [catlist] shortcode.
http://wordpress.org/extend/plugins/list-category-posts/
GNU General Public License v2.0
241 stars 112 forks source link

Fix PHP warnings caused by widget back end #420

Closed klemens-st closed 4 years ago

klemens-st commented 4 years ago

When I was refactoring things in #411 I forgot that the widget admin panel scans for templates.

Re-added an is_dir check so that PHP doesn't complain about non existent directories.

klemens-st commented 4 years ago

https://wordpress.org/support/topic/some-error-messages-after-last-update/#post-13070988

codeclimate[bot] commented 4 years ago

Code Climate has analyzed commit 1598df7e and detected 0 issues on this pull request.

View more on Code Climate.

picandocodigo commented 4 years ago

I couldn't reproduce the issue with the widget, but the code looks good :+1:

klemens-st commented 4 years ago

It only happens if you don't have the list-categogy-posts directory in your theme and you visit the widget admin area.