Log in with username/password: lyceum/lyceum

Ticket #902 (new defect)

Opened 9 months ago

Recent posts: nickname instead of public display name?

Reported by: lyceum Assigned to:
Priority: low Milestone: 1.1
Keywords: public display name, nickname Cc: donatas@infosys.lt

Description

In function get_recent_posts() : 'nickname' from usermeta is displayed, instead of 'public display name', from users.

What is the point of using nickname? In my opinion, 'public display name' should be the same all over the project - own blog, recent posts, etc. File: wp-includes/functions.php, line 719.

$_post->author_nickname = get_user_option( 'nickname', $_post->post_author );

I'd change the value to

$wpdb->get_var("SELECT display_name FROM $wpdb->users WHERE id=$_post->post_author");
Log in with username/password: lyceum/lyceum