5 | | return apply_filters('the_author', $authordata->display_name); |
| 5 | if (empty($idmode)) { |
| 6 | $idmode = 'display_name'; |
| 7 | } |
| 8 | if ($idmode == 'display_name') $id = $authordata->display_name; |
| 9 | if ($idmode == 'nickname') $id = $authordata->nickname; |
| 10 | if ($idmode == 'login') $id = $authordata->user_login; |
| 11 | if ($idmode == 'firstname') $id = $authordata->user_firstname; |
| 12 | if ($idmode == 'lastname') $id = $authordata->user_lastname; |
| 13 | if ($idmode == 'namefl') $id = $authordata->user_firstname.' '.$authordata->user_lastname; |
| 14 | if ($idmode == 'namelf') $id = $authordata->user_lastname.' '.$authordata->user_firstname; |
| 15 | if (!$idmode) $id = $authordata->display_name; |
| 16 | return apply_filters('the_author', $id); |