Support » Plugin: Multisite Global Search » Little bug

  • 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();


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

    Thanks for the plugin and
    br from Salzburg!

    – Johannes

Viewing 1 replies (of 1 total)
  • And please insert a

    $excerpt = strip_tags($excerpt);


    $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.