From f90397911be824db964bde804ae0b868b6188587 Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 9 Apr 2008 14:55:12 +0000 Subject: Allow "class" and "id" attributes because the WYSIWYG editor uses them extensively, fixes #581 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1223 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/wpmu-functions.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index c184d36..3b9740b 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -1812,10 +1812,6 @@ Strip class, id and style attributes from post HTML */ function wordpressmu_kses( $tags ) { foreach( $tags as $tag => $attr ) { - if( is_array( $attr[ 'class' ] ) ) - unset( $attr[ 'class' ] ); - if( is_array( $attr[ 'id' ] ) ) - unset( $attr[ 'id' ] ); if( is_array( $attr[ 'style' ] ) ) unset( $attr[ 'style' ] ); $tags[ $tag ] = $attr; -- cgit