Opened 15 years ago
Closed 14 years ago
#20047 closed enhancement (fixed)
get_the_author_link() Should default to rel="author"
| Reported by: | Ipstenu | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | General | Version: | 3.3.1 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
Per this WP.org forum post, the linktype of author would comply more with w3c's wibbly wobbly guidelines.
Attachments (2)
Change History (9)
#2
@
15 years ago
- Cc added
More appropriate would be rel="author external" - these links usually leads to external websites.
#3
@
15 years ago
They usually lead to /author/username in my experience. When I click on the post author in a post, I usually go to the in-blog page for that author.
#4
follow-up:
↓ 5
@
14 years ago
- Cc added
I believe sirzooro is correct.
In this instance the get_the_author_link() gets the website URL that is entered into the text field on a user's profile which is usually an external URL (unless someone manually enters a link to the site site), not the users post archive page.
The link to the users post archive page can be retrieved using the_author_posts_link() which already adds a rel="author" attribute.
#5
in reply to: ↑ 4
@
14 years ago
Replying to husobj:
I believe sirzooro is correct.
In this instance the get_the_author_link() gets the website URL that is entered into the text field on a user's profile which is usually an external URL (unless someone manually enters a link to the site), not the users post archive page.
I agree. If there was a easy way to check the url to be external, it would be nicer to check that and apply external if it really is an external link. Provided a new patch (based on Ipstenu's fix) to get this ready.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Changing external to author