diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-04-09 14:55:12 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-04-09 14:55:12 +0000 |
commit | f90397911be824db964bde804ae0b868b6188587 (patch) | |
tree | 76f9a34f97649d6a4a8c1dbdf831f3b4a14b9cb1 /wp-includes | |
parent | 02907810007f81acc061148c98049c493c734e2e (diff) | |
download | wordpress-mu-f90397911be824db964bde804ae0b868b6188587.tar.gz wordpress-mu-f90397911be824db964bde804ae0b868b6188587.tar.xz wordpress-mu-f90397911be824db964bde804ae0b868b6188587.zip |
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
Diffstat (limited to 'wp-includes')
-rw-r--r-- | wp-includes/wpmu-functions.php | 4 |
1 files changed, 0 insertions, 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; |