• I have a custom search page in my theme to use Google Search and I’m using get_search_form() to load the search form which points to that page. Since version 3.0 Polylang started completely ignoring the action attribute of my search form and simply rewrites it to the home_url, so I can’t use my custom search page anymore.

    This has been working fine for many years up to version 2.9.2 of Polylang, is there any way I can restore the old behavior?

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    Yes we changed how we handle the sarch form to fix a conflict with the theme Woodmart in the version 3.0. Our filter to return only results in the current language was indeed not working correctly in some edge cases. Probably you took benefit of a situation where it was not working.

    If you are using yourself the filter get_search_form, you can use a priority > 99 to execute it after ours.

    Otherwise I suppose that you can simply remove it:

    
    remove_filter( 'get_search_form', array( PLL()->filters_search, 'get_search_form' ), 99 );
    
    Thread Starter Henrique Vianna

    (@hvianna)

    Removing the filter solved the issue. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Polylang 3.x changes search form action’ is closed to new replies.