Add __return_true() to complement __return_false(). see #12381

git-svn-id: http://svn.automattic.com/wordpress/trunk@13526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-03-01 08:50:27 +00:00
parent 882678a29e
commit d5427d9210

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