#16998 closed defect (bug) (fixed)
Default Link Label on Next and Previous Links Functions not Tanslated
| Reported by: | CharlesClarkson | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | I18N | Version: | |
| Severity: | normal | Keywords: | has-patch dev-feedback |
| Cc: | Focuses: |
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
@
15 years ago
- Cc added
- Component General → 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
@
15 years ago
- Milestone Awaiting Review → 3.2
We can change this to null as the default. Then a strict check would avoid any edge cases with an empty string.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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 ...
get_next_posts_link('')