Make WordPress Core


Ignore:
Timestamp:
04/19/2012 03:08:06 PM (12 years ago)
Author:
duck_
Message:

Handle uppercase HTML entities in get_previous_posts_link(). Props ounziw. See #4152, fixes #19803.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r20023 r20537  
    15641564    if ( !is_single() && $paged > 1 ) {
    15651565        $attr = apply_filters( 'previous_posts_link_attributes', '' );
    1566         return '<a href="' . previous_posts( false ) . "\" $attr>". preg_replace( '/&([^#])(?![a-z]{1,8};)/', '&#038;$1', $label ) .'</a>';
     1566        return '<a href="' . previous_posts( false ) . "\" $attr>". preg_replace( '/&([^#])(?![a-z]{1,8};)/i', '&#038;$1', $label ) .'</a>';
    15671567    }
    15681568}
Note: See TracChangeset for help on using the changeset viewer.