Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/21/2011 01:05:56 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Bring the sitewide search back to life. Code clean up. Trap instances where catchuri would return incomplete matches. Use home_url instead of site_url in some places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/header.php

    r3771 r3796  
    1212
    1313        <?php
    14         if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) )
    15             wp_enqueue_script( 'comment-reply' );
     14            if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) )
     15                wp_enqueue_script( 'comment-reply' );
    1616
    17         wp_head();
     17            wp_head();
    1818        ?>
    1919    </head>
     
    3434
    3535                <?php if ( bp_search_form_enabled() ) : ?>
     36
    3637                    <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
    37                         <input type="text" id="search-terms" name="search-terms" value="" />
     38                        <input type="text" id="search-terms" name="search-terms" value="<?php echo isset( $_REQUEST['s'] ) ? esc_attr( $_REQUEST['s'] ) : ''; ?>" />
     39
    3840                        <?php echo bp_search_form_type_select() ?>
    3941
    4042                        <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
     43
    4144                        <?php wp_nonce_field( 'bp_search_form' ) ?>
     45
    4246                    </form><!-- #search-form -->
     47
    4348                <?php endif; ?>
    4449
Note: See TracChangeset for help on using the changeset viewer.