Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r19547 r21049  
    8080
    8181// Keys
    82 foreach ( array( 'pre_post_type' ) as $filter ) {
    83         add_filter( $filter, 'sanitize_user' );
    84 }
    85 foreach ( array( 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
     82foreach ( array( 'pre_post_type', 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
    8683        add_filter( $filter, 'sanitize_key' );
    8784}
    … …  
    194191add_filter( 'pings_open',               '_close_comments_for_old_post', 10, 2 );
    195192add_filter( 'editable_slug',            'urldecode'                           );
     193add_filter( 'editable_slug',            'esc_textarea'                        );
    196194add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object'        );
    197195
    … …  
    232230// WP Cron
    233231if ( !defined( 'DOING_CRON' ) )
    234         add_action( 'sanitize_comment_cookies', 'wp_cron' );
     232        add_action( 'init', 'wp_cron' );
    235233
    236234// 2 Actions 2 Furious
    … …  
    241239add_action( 'do_pings',                   'do_all_pings',                            10, 1 );
    242240add_action( 'do_robots',                  'do_robots'                                      );
     241add_action( 'set_comment_cookies',        'wp_set_comment_cookies',                  10, 2 );
    243242add_action( 'sanitize_comment_cookies',   'sanitize_comment_cookies'                       );
    244243add_action( 'admin_print_scripts',        'print_head_scripts',                      20    );
    … …  
    256255add_action( 'comment_form',               'wp_comment_form_unfiltered_html_nonce'          );
    257256add_action( 'wp_scheduled_delete',        'wp_scheduled_delete'                            );
     257add_action( 'wp_scheduled_auto_draft_delete', 'wp_delete_auto_drafts'                      );
    258258add_action( 'admin_init',                 'send_frame_options_header',               10, 0 );
    259259add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment'                           );
    … …  
    284284
    285285unset($filter, $action);
    286 
    287 ?>
Note: See TracChangeset for help on using the changeset viewer.