mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Reverse backport (?) from 2.0.x of KSES filters
git-svn-id: http://svn.automattic.com/wordpress/trunk@4654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
db313621d6
commit
d99f7eaf96
@ -534,6 +534,7 @@ function kses_init_filters() {
|
||||
|
||||
// Post filtering
|
||||
add_filter('content_save_pre', 'wp_filter_post_kses');
|
||||
add_filter('excerpt_save_pre', 'wp_filter_post_kses');
|
||||
add_filter('content_filtered_save_pre', 'wp_filter_post_kses');
|
||||
}
|
||||
|
||||
@ -544,6 +545,7 @@ function kses_remove_filters() {
|
||||
|
||||
// Post filtering
|
||||
remove_filter('content_save_pre', 'wp_filter_post_kses');
|
||||
remove_filter('excerpt_save_pre', 'wp_filter_post_kses');
|
||||
remove_filter('content_filtered_save_pre', 'wp_filter_post_kses');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user