• In class.widgets.php, you always refer to two variables:

    – $rand and
    – $rand2

    to give your input fields unique IDs.

    But you just initialize $rand and forget about $rand2 – So if i output your search field twice on the page, the page doesn’t validate because one id was used twice.

    Just replace

    $rand = rand();

    with

    $rand = rand();
    $rand2 = rand();

    Thanks for the plugin and
    br from Salzburg!

    – Johannes

    https://www.ads-software.com/extend/plugins/multisite-global-search/

Viewing 1 replies (of 1 total)
  • Thread Starter jaroat

    (@jaroat)

    And please insert a

    $excerpt = strip_tags($excerpt);

    after

    $excerpt = strip_shortcodes( $excerpt );
    $excerpt = apply_filters( 'the_content', $excerpt );

    because your truncating of the excerpt cuts tags in half eventually, which then may break layouts, etc.

    br from Salzburg,

    – Johannes

Viewing 1 replies (of 1 total)
  • The topic ‘Little bug’ is closed to new replies.