[wp-trac] [WordPress Trac] #30355: Create get_author_posts_link() function to return rather than echo HTML-formatted author posts link

WordPress Trac noreply at wordpress.org
Tue Sep 29 01:48:49 UTC 2015


#30355: Create get_author_posts_link() function to return rather than echo HTML-
formatted author posts link
-------------------------+---------------------------
 Reporter:  chipbennett  |       Owner:  DrewAPicture
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.4
Component:  Themes       |     Version:  1.2
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  template
-------------------------+---------------------------
Changes (by DrewAPicture):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34677"]:
 {{{
 #!CommitTicketReference repository="" revision="34677"
 Introduce `get_the_author_posts_link()`, which returns the HTML link to
 the author page for the current post's author.

 `the_author_posts_link()` has in-turn been converted into a wrapper, with
 most of its logic moved to the new function.

 Adds tests for the new function.

 Props chipbennett, zrothauser, wonderboymusic, DrewAPicture.
 Fixes #30355.
 }}}

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


More information about the wp-trac mailing list