mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Updated author functions.
git-svn-id: http://svn.automattic.com/wordpress/trunk@137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c5ef3792cf
commit
de71fcebbc
@ -253,58 +253,58 @@ function the_weekday_date($before='',$after='') {
|
||||
|
||||
function the_author() {
|
||||
global $id, $authordata;
|
||||
$i = $authordata['user_idmode'];
|
||||
if ($i == 'nickname') echo $authordata['user_nickname'];
|
||||
if ($i == 'login') echo $authordata['user_login'];
|
||||
if ($i == 'firstname') echo $authordata['user_firstname'];
|
||||
if ($i == 'lastname') echo $authordata['user_lastname'];
|
||||
if ($i == 'namefl') echo $authordata['user_firstname'].' '.$authordata['user_lastname'];
|
||||
if ($i == 'namelf') echo $authordata['user_lastname'].' '.$authordata['user_firstname'];
|
||||
if (!$i) echo $authordata['user_nickname'];
|
||||
$i = $authordata->user_idmode;
|
||||
if ($i == 'nickname') echo $authordata->user_nickname;
|
||||
if ($i == 'login') echo $authordata->user_login;
|
||||
if ($i == 'firstname') echo $authordata->user_firstname;
|
||||
if ($i == 'lastname') echo $authordata->user_lastname;
|
||||
if ($i == 'namefl') echo $authordata->user_firstname.' '.$authordata->user_lastname;
|
||||
if ($i == 'namelf') echo $authordata->user_lastname.' '.$authordata->user_firstname;
|
||||
if (!$i) echo $authordata->user_nickname;
|
||||
}
|
||||
|
||||
function the_author_login() {
|
||||
global $id,$authordata; echo $authordata['user_login'];
|
||||
global $id,$authordata; echo $authordata->user_login;
|
||||
}
|
||||
|
||||
function the_author_firstname() {
|
||||
global $id,$authordata; echo $authordata['user_firstname'];
|
||||
global $id,$authordata; echo $authordata->user_firstname;
|
||||
}
|
||||
|
||||
function the_author_lastname() {
|
||||
global $id,$authordata; echo $authordata['user_lastname'];
|
||||
global $id,$authordata; echo $authordata->user_lastname;
|
||||
}
|
||||
|
||||
function the_author_nickname() {
|
||||
global $id,$authordata; echo $authordata['user_nickname'];
|
||||
global $id,$authordata; echo $authordata->user_nickname;
|
||||
}
|
||||
|
||||
function the_author_ID() {
|
||||
global $id,$authordata; echo $authordata['ID'];
|
||||
global $id,$authordata; echo $authordata->ID;
|
||||
}
|
||||
|
||||
function the_author_email() {
|
||||
global $id,$authordata; echo antispambot($authordata['user_email']);
|
||||
global $id,$authordata; echo antispambot($authordata->user_email);
|
||||
}
|
||||
|
||||
function the_author_url() {
|
||||
global $id,$authordata; echo $authordata['user_url'];
|
||||
global $id,$authordata; echo $authordata->user_url;
|
||||
}
|
||||
|
||||
function the_author_icq() {
|
||||
global $id,$authordata; echo $authordata['user_icq'];
|
||||
global $id,$authordata; echo $authordata->user_icq;
|
||||
}
|
||||
|
||||
function the_author_aim() {
|
||||
global $id,$authordata; echo str_replace(' ', '+', $authordata['user_aim']);
|
||||
global $id,$authordata; echo str_replace(' ', '+', $authordata->user_aim);
|
||||
}
|
||||
|
||||
function the_author_yim() {
|
||||
global $id,$authordata; echo $authordata['user_yim'];
|
||||
global $id,$authordata; echo $authordata->user_yim;
|
||||
}
|
||||
|
||||
function the_author_msn() {
|
||||
global $id,$authordata; echo $authordata['user_msn'];
|
||||
global $id,$authordata; echo $authordata->user_msn;
|
||||
}
|
||||
|
||||
function the_author_posts() {
|
||||
|
Loading…
Reference in New Issue
Block a user