This topic has 2 replies, 3 voices, and was last updated 8 years by Radu.

  • Author
  • #174078
     simlim
    Participant

    There is a bug with the search when a user search multiple content type (including custom post types).

    To reproduce, example use search string: https://seventhqueen.com/themes/kleo/?s=the&post_type[]=post,product,page,kleo-testimonials

    Expected to show all post results, but it just show only the post results, and gets cut off (turn on WP_DEBUG to see error).

     

    Reason for bug:

    /kleo/kleo-framework/lib/function-core.php:311

    The use of array_map(‘urlencode’, $query_args) is causing a “urlencode() expects parameter 1 to be string, array given” error, because the first item in the array is post_type which is an array not a string (because the url parameter for multiple post types is an array). To rectify, need to refactor the code for this line to consider situation where $query_args contains an array of array, instead of always an array of strings.

    #174142
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #174309
     Radu
    Moderator

    Hi,

    Thank you for reporting this, added to buglist we will let you know when it’s fixed.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?