Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r6141 r6211  
    2626}
    2727
    28 // URL
     28// Save URL
    2929$filters = array('pre_comment_author_url', 'pre_user_url', 'pre_link_url', 'pre_link_image',
    30     'pre_link_rss', 'comment_url');
     30    'pre_link_rss');
     31foreach ( $filters as $filter ) {
     32    add_filter($filter, 'strip_tags');
     33    add_filter($filter, 'trim');
     34    add_filter($filter, 'sanitize_url');
     35    add_filter($filter, 'wp_filter_kses');
     36}
     37
     38// Display URL
     39$filters = array('user_url', 'link_url', 'link_image', 'link_rss', 'comment_url');
    3140foreach ( $filters as $filter ) {
    3241    add_filter($filter, 'strip_tags');
     
    128137// Actions
    129138add_action('wp_head', 'rsd_link');
     139add_action('wp_head', 'wlwmanifest_link');
    130140add_action('wp_head', 'locale_stylesheet');
    131141add_action('publish_future_post', 'wp_publish_post', 10, 1);
Note: See TracChangeset for help on using the changeset viewer.