WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/formatting.php

    r17172 r15378  
    22372237    // Replace ampersands and single quotes only when displaying.
    22382238    if ( 'display' == $_context ) {
    2239         $url = wp_kses_normalize_entities( $url );
    2240         $url = str_replace( '&', '&', $url );
     2239        $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url);
    22412240        $url = str_replace( "'", ''', $url );
    22422241    }
Note: See TracChangeset for help on using the changeset viewer.