]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/default-filters.php
Wordpress 3.7
[autoinstalls/wordpress.git] / wp-includes / default-filters.php
index 89b39769218acb882b26b4331f5615ff1a6af3b2..b6c7527553b1de3dca9bd77e32c99cc3c5e22ab7 100644 (file)
@@ -74,9 +74,7 @@ foreach ( array( 'user_url', 'link_url', 'link_image', 'link_rss', 'comment_url'
 }
 
 // Slugs
-foreach ( array( 'pre_term_slug' ) as $filter ) {
-       add_filter( $filter, 'sanitize_title' );
-}
+add_filter( 'pre_term_slug', 'sanitize_title' );
 
 // Keys
 foreach ( array( 'pre_post_type', 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
@@ -100,7 +98,7 @@ foreach ( array( 'comment_author', 'term_name', 'link_name', 'link_description',
 }
 
 // Format WordPress
-foreach ( array( 'the_content', 'the_title' ) as $filter )
+foreach ( array( 'the_content', 'the_title', 'wp_title' ) as $filter )
        add_filter( $filter, 'capital_P_dangit', 11 );
 add_filter( 'comment_text', 'capital_P_dangit', 31 );
 
@@ -119,9 +117,7 @@ foreach ( array( 'term_description' ) as $filter ) {
 }
 
 // Format for RSS
-foreach ( array( 'term_name_rss' ) as $filter ) {
-       add_filter( $filter, 'convert_chars' );
-}
+add_filter( 'term_name_rss', 'convert_chars' );
 
 // Pre save hierarchy
 add_filter( 'wp_insert_post_parent', 'wp_check_post_hierarchy_for_loops', 10, 2 );
@@ -266,7 +262,7 @@ add_action( 'welcome_panel',              'wp_welcome_panel'
 
 // Navigation menu actions
 add_action( 'delete_post',                '_wp_delete_post_menu_item'         );
-add_action( 'delete_term',                '_wp_delete_tax_menu_item'          );
+add_action( 'delete_term',                '_wp_delete_tax_menu_item',   10, 3 );
 add_action( 'transition_post_status',     '_wp_auto_add_pages_to_menu', 10, 3 );
 
 // Post Thumbnail CSS class filtering
@@ -301,4 +297,8 @@ add_action( 'admin_enqueue_scripts',     'wp_auth_check_load'   );
 add_filter( 'heartbeat_received',        'wp_auth_check', 10, 2 );
 add_filter( 'heartbeat_nopriv_received', 'wp_auth_check', 10, 2 );
 
+// Default authentication filters
+add_filter( 'authenticate', 'wp_authenticate_username_password',  20, 3 );
+add_filter( 'authenticate', 'wp_authenticate_spam_check',         99    );
+
 unset($filter, $action);