WordPress.org

Ready to get started?Download WordPress

Forums

Multisite Global Search
Little bug (2 posts)

  1. jaroat
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/plugins/multisite-global-search/

  2. jaroat
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.