[wp-trac] [WordPress Trac] #37249: Missing url escapes and 'author' link relation in wp_list_authors()
WordPress Trac
noreply at wordpress.org
Fri Jul 1 12:34:24 UTC 2016
#37249: Missing url escapes and 'author' link relation in wp_list_authors()
--------------------------+-----------------------------
Reporter: birgire | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: template |
--------------------------+-----------------------------
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 ;-)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37249>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list