Better documentation for the_author props darkdragon

git-svn-id: http://svn.automattic.com/wordpress/trunk@6515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-12-28 21:19:44 +00:00
parent d49cece4a3
commit b53a070422
1 changed files with 8 additions and 1 deletions

View File

@ -24,9 +24,16 @@ function get_the_author($deprecated = '') {
/**
* the_author() - Echo the name of the author of the current post in the Loop.
*
* The behavior of this function is based off of old functionality predating get_the_author().
* This function is not deprecated, but is designed to echo the value from get_the_author()
* and as an result of any old theme that might still use the old behavior will also
* pass the value from get_the_author().
*
* The normal, expected behavior of this function is to echo the author and not return it.
* However, backwards compatiability has to be maintained.
*
* @since 0.71
* @see get_the_author()
* @deprecated Use get_the_author()
*
* @param string $deprecated Deprecated.
* @param string $deprecated_echo Echo the string or return it. Deprecated, use get_the_author().