[wp-trac] [WordPress Trac] #51859: Add filter to get_the_author_link
WordPress Trac
noreply at wordpress.org
Mon Mar 21 14:32:02 UTC 2022
#51859: Add filter to get_the_author_link
-------------------------------------------------+-------------------------
Reporter: dshanske | Owner:
| davidbaumwald
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 6.0
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh 2nd-opinion | Focuses:
-------------------------------------------------+-------------------------
Comment (by davidbaumwald):
@audrasjb That sounds fine. Could use the `$authordata` global. This
would make all user data available to the filter callback.
One other concern I have here is potential confusion with the existing
[https://core.trac.wordpress.org/browser/branches/5.9/src/wp-includes
/author-template.php#L372 author_link] filter. I think renaming this new
filter to `author_url_link_html` would be more appropriate.
I'm working on adding some unit tests for this new filter. I'll throw up
a PR for easier review.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51859#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list