Add a function to return an empty string, for filters. props wpsmith, trepmal. fixes #20357.

Built from https://develop.svn.wordpress.org/trunk@25037


git-svn-id: http://core.svn.wordpress.org/trunk@25024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-08-16 20:02:08 +00:00
parent d5c4413aaa
commit 1065f55586
1 changed files with 13 additions and 0 deletions

View File

@ -3667,6 +3667,19 @@ function __return_null() {
return null;
}
/**
* Returns an empty string.
*
* Useful for returning an empty string to filters easily.
*
* @since 3.7.0
* @see __return_null()
* @return string Empty string
*/
function __return_empty_string() {
return '';
}
/**
* Send a HTTP header to disable content type sniffing in browsers which support it.
*