WordPress.org

Make WordPress Core

Ticket #4051: filter_blogroll.patch

File filter_blogroll.patch, 940 bytes (added by mrmist, 5 years ago)

refreshed against 10289

  • bookmark-template.php

     
    7070 
    7171                $the_link = '#'; 
    7272                if ( !empty($bookmark->link_url) ) 
    73                         $the_link = clean_url($bookmark->link_url); 
     73                        $the_link = apply_filters('bookmark_url',$bookmark->link_url); 
    7474 
    7575                $rel = $bookmark->link_rel; 
    7676                if ( '' != $rel ) 
  • default-filters.php

     
    159159add_filter( 'comments_open', '_close_comments_for_old_post', 10, 2 ); 
    160160add_filter( 'pings_open', '_close_comments_for_old_post', 10, 2 ); 
    161161add_filter( 'editable_slug', 'urldecode' ); 
     162add_filter('bookmark_url','clean_url'); 
    162163 
    163164// Atom SSL support 
    164165add_filter('atom_service_url','atom_service_url_filter');