[wp-trac] [WordPress Trac] #44183: BUG in get_the_archive_title() when get author

WordPress Trac noreply at wordpress.org
Tue May 22 13:52:28 UTC 2018


#44183: BUG in get_the_archive_title() when get author
--------------------------+------------------------------
 Reporter:  Tkama         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by subrataemfluence):

 * keywords:   => has-patch
 * component:  General => Users


Comment:

 Good point! Based on your recommendation I am submitting a proposed patch
 for `$authordata`.

 However, I don't see it is super necessary to include an `esc_html()` with
 `get_the_author()` since it returns a pure string value which is
 $authordata->display_name and picked directly from the `wp_users` table.

 I don't think we have the ability to use HTML formatting for display_name
 field. Please correct me if I am wrong.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44183#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list