Opened 10 years ago
Last modified 7 years ago
#37249 new defect (bug)
Missing url escapes and 'author' link relation in wp_list_authors()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | has-patch |
| Focuses: | template | Cc: |
Description
Since WordPress 4.4 the function get_the_author_posts_link() is available:
https://github.com/WordPress/WordPress/blob/4.4-branch/wp-includes/author-template.php#L236-268
It was introduced in #30355. It escapes the get_author_posts_url() as expected and uses rel="author" for the author link.
This is not the case with wp_list_authors() were e.g. both get_author_posts_url() and get_author_feed_link() are un-escaped.
ps:
My first thought was to have two separate tickets for the escape + relation, but I decided to combine it here as it corresponds to the same code.
It would have been handy to use get_author_posts_url() within wp_list_authors() but there's a slight difference there. If we had e.g. the input parameters get_author_posts_url( $author, $name ) then such a replacement could work ;-)
author-template.diff no longer applies cleanly and needs a refresh.