Opened 15 years ago
Closed 15 years ago
#19803 closed defect (bug) (fixed)
get_previous_posts_link: Capital HTML entity
| Reported by: | ounziw | Owned by: | duck_ |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Formatting | Version: | 3.3.1 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description (last modified by )
get_previous_posts_link (located in wp-includes/link-template.php ) has a regular expression at line 1569
preg_replace( '/&([^#])(?![a-z]{1,8};)/', '&$1', $label )
This replaces ⇐ into ⇐, hence ⇐ is not allowed as a linktext. (html entites with capital letter(s) disallowed)
get_next_posts_link (also located in wp-includes/link-template.php ) has a regular expression at line 1498
preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $label)
This does not replace ⇐
I propose to use
preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $label)
both get_next_posts_link and get_previous_posts_link
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looks like this was missed in [13922]. I guess it would make sense to be consistent.