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:
Andrew Nacin 2010-03-01 08:50:27 +00:00
parent aef79be496
commit cd9d4b8291

View File

@ -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() {