Filter post_content_filtered
git-svn-id: http://svn.automattic.com/wordpress/trunk@4533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
64429cec1e
commit
30af9648b5
|
@ -534,6 +534,7 @@ function kses_init_filters() {
|
||||||
|
|
||||||
// Post filtering
|
// Post filtering
|
||||||
add_filter('content_save_pre', 'wp_filter_post_kses');
|
add_filter('content_save_pre', 'wp_filter_post_kses');
|
||||||
|
add_filter('content_filtered_save_pre', 'wp_filter_post_kses');
|
||||||
}
|
}
|
||||||
|
|
||||||
function kses_remove_filters() {
|
function kses_remove_filters() {
|
||||||
|
@ -543,6 +544,7 @@ function kses_remove_filters() {
|
||||||
|
|
||||||
// Post filtering
|
// Post filtering
|
||||||
remove_filter('content_save_pre', 'wp_filter_post_kses');
|
remove_filter('content_save_pre', 'wp_filter_post_kses');
|
||||||
|
remove_filter('content_filtered_save_pre', 'wp_filter_post_kses');
|
||||||
}
|
}
|
||||||
|
|
||||||
function kses_init() {
|
function kses_init() {
|
||||||
|
|
|
@ -495,6 +495,7 @@ function wp_insert_post($postarr = array()) {
|
||||||
// Get the basics.
|
// Get the basics.
|
||||||
if ( empty($no_filter) ) {
|
if ( empty($no_filter) ) {
|
||||||
$post_content = apply_filters('content_save_pre', $post_content);
|
$post_content = apply_filters('content_save_pre', $post_content);
|
||||||
|
$post_content_filtered = apply_filters('content_filtered_save_pre', $post_content_filtered);
|
||||||
$post_excerpt = apply_filters('excerpt_save_pre', $post_excerpt);
|
$post_excerpt = apply_filters('excerpt_save_pre', $post_excerpt);
|
||||||
$post_title = apply_filters('title_save_pre', $post_title);
|
$post_title = apply_filters('title_save_pre', $post_title);
|
||||||
$post_category = apply_filters('category_save_pre', $post_category);
|
$post_category = apply_filters('category_save_pre', $post_category);
|
||||||
|
@ -1207,6 +1208,7 @@ function wp_insert_attachment($object, $file = false, $post_parent = 0) {
|
||||||
|
|
||||||
// Get the basics.
|
// Get the basics.
|
||||||
$post_content = apply_filters('content_save_pre', $post_content);
|
$post_content = apply_filters('content_save_pre', $post_content);
|
||||||
|
$post_content_filtered = apply_filters('content_filtered_save_pre', $post_content_filtered);
|
||||||
$post_excerpt = apply_filters('excerpt_save_pre', $post_excerpt);
|
$post_excerpt = apply_filters('excerpt_save_pre', $post_excerpt);
|
||||||
$post_title = apply_filters('title_save_pre', $post_title);
|
$post_title = apply_filters('title_save_pre', $post_title);
|
||||||
$post_category = apply_filters('category_save_pre', $post_category);
|
$post_category = apply_filters('category_save_pre', $post_category);
|
||||||
|
|
Loading…
Reference in New Issue