#16998 closed defect (bug) (fixed)
Default Link Label on Next and Previous Links Functions not Tanslated
Reported by: | CharlesClarkson | Owned by: | |
---|---|---|---|
Milestone: | 3.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
The default link $label parameter on these Previous/Next posts functions is not translatable.
get_next_posts_link() next_posts_link() get_previous_posts_link() previous_posts_link()
The path handles the label text the same way as the comment Previous/Next links in the same file (/wp-includes/link-template.php).
This patch might break a plugin or theme which relies on passing in the function call. I'm not sure why anyone would do that to a link text label, but ...
Attachments (3)
Change History (8)
#2
@
13 years ago
- Cc ncrice@… added
- Component changed from General to I18N
- Keywords has-patch dev-feedback added
+1
Having the default text non-translatable is bad form for international users, and places the burden on theme developers to pass their own translatable text to these functions in order to use them properly.
#3
@
13 years ago
- Milestone changed from Awaiting Review to 3.2
We can change this to null as the default. Then a strict check would avoid any edge cases with an empty string.
Note: See
TracTickets for help on using
tickets.
This patch might break a plugin or theme which relies on passing an empty string in the function call. I'm not sure why anyone would do that to a link text label, but ...