From 65ce9a329fc5ccf403e419bbad4202d54391e38e Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 25 Sep 2006 02:21:05 +0000 Subject: [PATCH] Deprecate idmode. fixes #2386 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4234 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-author.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/wp-includes/template-functions-author.php b/wp-includes/template-functions-author.php index 0838f5ff1c..1b11d54f56 100644 --- a/wp-includes/template-functions-author.php +++ b/wp-includes/template-functions-author.php @@ -1,14 +1,15 @@ display_name); } -function the_author($idmode = '', $echo = true) { - if ( $echo ) - echo get_the_author($idmode); - return get_the_author($idmode); +// Using echo = false is deprecated. Use get_the_author instead. +function the_author($deprecated = '', $deprecated_echo = true) { + if ( $deprecated_echo ) + echo get_the_author(); + return get_the_author(); } function get_the_author_description() { @@ -127,10 +128,10 @@ function the_author_posts() { } /* the_author_posts_link() requires no get_, use get_author_link() */ -function the_author_posts_link($idmode='') { +function the_author_posts_link($deprecated = '') { global $authordata; - echo '' . the_author($idmode, false) . ''; + echo '' . get_the_author() . ''; } function get_author_link($echo = false, $author_id, $author_nicename = '') {