Add __return_true() to complement __return_false(). see #12381
git-svn-id: https://develop.svn.wordpress.org/trunk@13526 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
aef79be496
commit
cd9d4b8291
@ -4047,11 +4047,24 @@ function _search_terms_tidy($t) {
|
||||
return trim($t, "\"'\n\r ");
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true
|
||||
*
|
||||
* Useful for returning true to filters easily
|
||||
*
|
||||
* @see __return_false()
|
||||
* @return bool true
|
||||
*/
|
||||
function __return_true() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns false
|
||||
*
|
||||
* Useful for returning false to filters easily
|
||||
*
|
||||
*
|
||||
* @see __return_true()
|
||||
* @return bool false
|
||||
*/
|
||||
function __return_false() {
|
||||
|
Loading…
Reference in New Issue
Block a user