WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #19803


Ignore:
Timestamp:
01/11/2012 08:01:40 AM (6 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19803 – Description

    initial v1  
    11get_previous_posts_link (located in wp-includes/link-template.php ) has a regular expression at line 1569
     2
     3{{{
    24preg_replace( '/&([^#])(?![a-z]{1,8};)/', '&$1', $label )
     5}}}
    36
    47This replaces ''⇐'' into ''⇐'', hence ''⇐'' is not allowed as a linktext. (html entites with capital letter(s) disallowed)
     
    69
    710get_next_posts_link (also located in wp-includes/link-template.php ) has a regular expression at line 1498
     11
     12{{{
    813preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $label)
     14}}}
    915
    1016This does not replace ''⇐''
    1117
    1218I propose to use
     19
     20{{{
    1321preg_replace('/&([^#])(?![a-z]{1,8};)/i', '&$1', $label)
     22}}}
     23
    1424both get_next_posts_link and get_previous_posts_link