Opened 12 years ago
Closed 12 years ago
#19803 closed defect (bug) (fixed)
get_previous_posts_link: Capital HTML entity
Reported by: | ounziw | Owned by: | duck_ |
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | minor | Version: | 3.3.1 |
Component: | Formatting | Keywords: | has-patch |
Focuses: | Cc: |
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.
Looks like this was missed in [13922]. I guess it would make sense to be consistent.