mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12537 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -41,10 +41,14 @@ function get_the_author($deprecated = '') {
|
||||
* @link http://codex.wordpress.org/Template_Tags/the_author
|
||||
*
|
||||
* @param string $deprecated Deprecated.
|
||||
* @param string $deprecated_echo Echo the string or return it.
|
||||
* @param string $deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it.
|
||||
* @return string The author's display name, from get_the_author().
|
||||
*/
|
||||
function the_author($deprecated = '', $deprecated_echo = true) {
|
||||
if ( !empty($deprecated) )
|
||||
_deprecated_argument(__FUNCTION__, 'deprecated', '1.5');
|
||||
if ( $deprecated_echo !== true )
|
||||
_deprecated_argument(__FUNCTION__, 'deprecated_echo', '1.5', __('Use get_the_author() instead if you do not want the value echoed.'));
|
||||
if ( $deprecated_echo )
|
||||
echo get_the_author();
|
||||
return get_the_author();
|
||||
@@ -177,6 +181,9 @@ function the_author_posts() {
|
||||
* @param string $deprecated Deprecated.
|
||||
*/
|
||||
function the_author_posts_link($deprecated = '') {
|
||||
if ( !empty( $deprecated ) )
|
||||
_deprecated_argument(__FUNCTION__, 'deprecated', '0.0');
|
||||
|
||||
global $authordata;
|
||||
$link = sprintf(
|
||||
'<a href="%1$s" title="%2$s">%3$s</a>',
|
||||
|
||||
Reference in New Issue
Block a user