WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/18/2009 11:50:59 AM (12 years ago)
Author:
westi
Message:

Remove duplicated create_function calls an use a private _search_terms_tidy function instead for tidying up the post/page searching when looking to attach orphans to a parent post or page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r12044 r12052  
    34803480    return $file_data;
    34813481}
     3482/*
     3483 * Used internally to tidy up the search terms
     3484 *
     3485 * @private
     3486 * @since 2.9.0
     3487 */
     3488function _search_terms_tidy($t) {
     3489    return trim($t, "\"\'\n\r ");
     3490}
    34823491?>
Note: See TracChangeset for help on using the changeset viewer.