Remove unnecessary loops in default-filters.php.

props Jayjdk.
fixes #25011.

Built from https://develop.svn.wordpress.org/trunk@25134


git-svn-id: http://core.svn.wordpress.org/trunk@25114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-08-27 11:59:11 +00:00
parent 8688857816
commit d26e92d60f
1 changed files with 2 additions and 6 deletions

View 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 ) {
@ -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 );