mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 18:48:18 +01:00
Deprecate idmode. fixes #2386
git-svn-id: https://develop.svn.wordpress.org/branches/2.0@4234 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
55a2809f0a
commit
ab1df54a00
@ -1,14 +1,15 @@
|
||||
<?php
|
||||
|
||||
function get_the_author($idmode = '') {
|
||||
function get_the_author($deprecated = '') {
|
||||
global $authordata;
|
||||
return apply_filters('the_author', $authordata->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 '<a href="' . get_author_link(0, $authordata->ID, $authordata->user_nicename) . '" title="' . sprintf(__("Posts by %s"), wp_specialchars(the_author($idmode, false))) . '">' . the_author($idmode, false) . '</a>';
|
||||
echo '<a href="' . get_author_link(0, $authordata->ID, $authordata->user_nicename) . '" title="' . sprintf(__("Posts by %s"), wp_specialchars(get_the_author())) . '">' . get_the_author() . '</a>';
|
||||
}
|
||||
|
||||
function get_author_link($echo = false, $author_id, $author_nicename = '') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user