Viewing 2 replies - 1 through 2 (of 2 total)
  • Getting the same error message, how to fix please?

    replace this code in line 361

    if (in_array( $the_post->post_type, $this->post_types ) && ! preg_match( ........

    with this

    if (is_array ($this->post_types) && in_array( $the_post->post_type, $this->post_types ) && ! preg_match( ........

    In this new code we are just checking that the 2nd parameter is array.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘It doesn't work: Warning: in_array() expects parameter 2 to be array’ is closed to new replies.