Usage of strpos PHP function incorrect
-
Less support question, and more informational to help improve the plugin.
In the set_args() method for the ICPagePosts class, you have the needle/haystack order incorrect for
strpos
calls.As is, you have
if ( strpos( ',', $this->args['post_type'] ) ) {
when it should beif ( strpos( $this->args['post_type'], ',' ) ) {
This is true for the other strpos call in the exclude_category check as well.
- The topic ‘Usage of strpos PHP function incorrect’ is closed to new replies.