Make WordPress Core


Ignore:
Timestamp:
08/24/2006 10:33:16 PM (18 years ago)
Author:
ryan
Message:

Make those chars feel special.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r4046 r4112  
    5555add_filter('pre_category_name', 'wp_specialchars', 30);
    5656add_filter('pre_category_description', 'wp_filter_kses');
     57
     58//Links
     59add_filter('pre_link_name', 'strip_tags');
     60add_filter('pre_link_name', 'trim');
     61add_filter('pre_link_name', 'wp_filter_kses');
     62add_filter('pre_link_name', 'wp_specialchars', 30);
     63add_filter('pre_link_description', 'wp_filter_kses');
     64add_filter('pre_link_notes', 'wp_filter_kses');
     65add_filter('pre_link_url', 'strip_tags');
     66add_filter('pre_link_url', 'trim');
     67add_filter('pre_link_url', 'clean_url');
     68add_filter('pre_link_image', 'strip_tags');
     69add_filter('pre_link_image', 'trim');
     70add_filter('pre_link_image', 'clean_url');
     71add_filter('pre_link_rss', 'strip_tags');
     72add_filter('pre_link_rss', 'trim');
     73add_filter('pre_link_rss', 'clean_url');
     74add_filter('pre_link_target', 'strip_tags');
     75add_filter('pre_link_target', 'trim');
     76add_filter('pre_link_target', 'wp_filter_kses');
     77add_filter('pre_link_target', 'wp_specialchars', 30);
     78add_filter('pre_link_rel', 'strip_tags');
     79add_filter('pre_link_rel', 'trim');
     80add_filter('pre_link_rel', 'wp_filter_kses');
     81add_filter('pre_link_rel', 'wp_specialchars', 30);
    5782
    5883// Users
     
    116141// Misc filters
    117142add_filter('option_ping_sites', 'privacy_ping_filter');
     143add_filter('option_blog_charset', 'wp_specialchars');
    118144
    119145// Actions
Note: See TracChangeset for help on using the changeset viewer.