#30355 closed enhancement (fixed)
Create get_author_posts_link() function to return rather than echo HTML-formatted author posts link
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 1.2 |
Component: | Themes | Keywords: | has-patch |
Focuses: | template | Cc: |
Description
Patch is fairly simple:
- Create
get_author_posts_link()
function, which is identical to currentthe_author_posts_link()
function, except that the output is *returned* instead of *echoed*. - Change
the_author_posts_link()
to echo the output ofget_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.
Attachments (5)
Change History (13)
#5
@
10 years ago
- Milestone changed from Future Release to 4.4
- Owner set to DrewAPicture
- Status changed from new to assigned
Refreshed so it doesn't explode 30355.2.diff
Note: See
TracTickets for help on using
tickets.
I like it, sounds like a sound improvement.
A few things I noticed:
get_the_author_posts_link()
.the_author_posts_link()
can start with "Display" again, rather than "Get".the_author_posts_link()
would need to continue accepting the deprecated argument.get_the_author_posts_link()
and don't need to pass it to it in the display function.