mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@12052 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3479,4 +3479,13 @@ function get_file_data( $file, $default_headers, $context = '' ) {
|
||||
|
||||
return $file_data;
|
||||
}
|
||||
/*
|
||||
* Used internally to tidy up the search terms
|
||||
*
|
||||
* @private
|
||||
* @since 2.9.0
|
||||
*/
|
||||
function _search_terms_tidy($t) {
|
||||
return trim($t, "\"\'\n\r ");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user