Make WordPress Core


Ignore:
Timestamp:
10/11/2004 10:07:09 PM (17 years ago)
Author:
saxmatt
Message:

Move balanceTags into filters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r1753 r1781  
    4949
    5050        $post_pingback = intval($_POST['post_pingback']);
    51         $content = balanceTags($_POST['content']);
     51        $content = apply_filters('content_save_pre', $_POST['content']);
    5252        $content = format_to_post($content);
    53         $excerpt = balanceTags($_POST['excerpt']);
     53        $excerpt = apply_filters('excerpt_save_pre',$_POST['excerpt']);
    5454        $excerpt = format_to_post($excerpt);
    5555        $post_title = $_POST['post_title'];
     
    282282        $post_categories = $_POST['post_category'];
    283283        if (!$post_categories) $post_categories[] = 1;
    284         $content = balanceTags($_POST['content']);
     284        $content = apply_filters('content_save_pre', $_POST['content']);
    285285        $content = format_to_post($content);
    286         $excerpt = balanceTags($_POST['excerpt']);
     286        $excerpt = apply_filters('excerpt_save_pre', $_POST['excerpt']);
    287287        $excerpt = format_to_post($excerpt);
    288288        $post_title = $_POST['post_title'];
     
    703703        $datemodif = '';
    704704    }
    705     $content = balanceTags($_POST['content']);
     705    $content = apply_filters('comment_save_pre', $_POST['content']);
    706706    $content = format_to_post($content);
    707707
Note: See TracChangeset for help on using the changeset viewer.