- File:
-
- 1 edited
-
trunk/wp-includes/default-filters.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-filters.php
r19547 r21049 80 80 81 81 // 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 ) { 82 foreach ( array( 'pre_post_type', 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) { 86 83 add_filter( $filter, 'sanitize_key' ); 87 84 } … … 194 191 add_filter( 'pings_open', '_close_comments_for_old_post', 10, 2 ); 195 192 add_filter( 'editable_slug', 'urldecode' ); 193 add_filter( 'editable_slug', 'esc_textarea' ); 196 194 add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' ); 197 195 … … 232 230 // WP Cron 233 231 if ( !defined( 'DOING_CRON' ) ) 234 add_action( ' sanitize_comment_cookies', 'wp_cron' );232 add_action( 'init', 'wp_cron' ); 235 233 236 234 // 2 Actions 2 Furious … … 241 239 add_action( 'do_pings', 'do_all_pings', 10, 1 ); 242 240 add_action( 'do_robots', 'do_robots' ); 241 add_action( 'set_comment_cookies', 'wp_set_comment_cookies', 10, 2 ); 243 242 add_action( 'sanitize_comment_cookies', 'sanitize_comment_cookies' ); 244 243 add_action( 'admin_print_scripts', 'print_head_scripts', 20 ); … … 256 255 add_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce' ); 257 256 add_action( 'wp_scheduled_delete', 'wp_scheduled_delete' ); 257 add_action( 'wp_scheduled_auto_draft_delete', 'wp_delete_auto_drafts' ); 258 258 add_action( 'admin_init', 'send_frame_options_header', 10, 0 ); 259 259 add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment' ); … … 284 284 285 285 unset($filter, $action); 286 287 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)