[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
Sat Nov 15 23:59:19 UTC 2014
#30355: Create get_author_posts_link() function to return rather than echo HTML-
formatted author posts link
-------------------------+-----------------------------
Reporter: chipbennett | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Patch is fairly simple:
1. Create `get_author_posts_link()` function, which is identical to
current `the_author_posts_link()` function, except that the output is
*returned* instead of *echoed*.
2. Change `the_author_posts_link()` to echo the output of
`get_author_posts_link()`.
The primary purpose for creating the patch is to allow for the return
value to be used in translation strings via `sprintf()`. Though, I'm sure
there will be other uses.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30355>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list