WordPress.org

Make WordPress Core

Ticket #18395: patch.diff

File patch.diff, 598 bytes (added by alexkingorg, 3 years ago)

very basic patch

  • wp-includes/default-filters.php

     
    6060foreach ( array( 'pre_comment_author_url', 'pre_user_url', 'pre_link_url', 'pre_link_image', 
    6161        'pre_link_rss', 'pre_post_guid' ) as $filter ) { 
    6262        add_filter( $filter, 'wp_strip_all_tags' ); 
    63         add_filter( $filter, 'esc_url_raw'       ); 
     63        if ($filter != 'pre_post_guid') 
     64                add_filter( $filter, 'esc_url_raw'       ); 
    6465        add_filter( $filter, 'wp_filter_kses'    ); 
    6566} 
    6667