From d26e92d60f3c3e55abdd6be35121df1c1c27f4a4 Mon Sep 17 00:00:00 2001
From: Andrew Nacin <wp@andrewnacin.com>
Date: Tue, 27 Aug 2013 11:59:11 +0000
Subject: [PATCH] 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
---
 wp-includes/default-filters.php | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php
index 84d43aa125..7c55dfb4d1 100644
--- a/wp-includes/default-filters.php
+++ b/wp-includes/default-filters.php
@@ -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 );