Skip to:
Content

bbPress.org

Changeset 4917


Ignore:
Timestamp:
05/19/2013 04:59:09 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Trim search shortcode search-terms. See #2337.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/shortcodes.php

    r4586 r4917  
    648648            return $content;
    649649
     650        // Trim search attribute if it's set
     651        if ( isset( $attr['search'] ) ) {
     652            $attr['search'] = trim( $attr['search'] );
     653        }
     654
    650655        // Set passed attribute to $search_terms for clarity
    651656        $search_terms = empty( $attr['search'] ) ? bbp_get_search_terms() : $attr['search'];
Note: See TracChangeset for help on using the changeset viewer.