Make WordPress Core

Changeset 2059


Ignore:
Timestamp:
01/06/2005 10:51:44 PM (21 years ago)
Author:
saxmatt
Message:

Cleaning up filters and format-to-post

Location:
trunk
Files:
3 edited

Legend:

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

    r2050 r2059  
    3131    $post_pingback = intval($_POST['post_pingback']);
    3232    $content = apply_filters('content_save_pre', $_POST['content']);
    33     $content = format_to_post($content);
    3433    $excerpt = apply_filters('excerpt_save_pre',$_POST['excerpt']);
    35     $excerpt = format_to_post($excerpt);
    3634    $post_title = $_POST['post_title'];
    3735    $post_categories = $_POST['post_category'];
     
    237235    if (!$post_categories) $post_categories[] = 1;
    238236    $content = apply_filters('content_save_pre', $_POST['content']);
    239     $content = format_to_post($content);
    240237    $excerpt = apply_filters('excerpt_save_pre', $_POST['excerpt']);
    241     $excerpt = format_to_post($excerpt);
    242238    $post_title = $_POST['post_title'];
    243239    $prev_status = $_POST['prev_status'];
     
    608604    }
    609605    $content = apply_filters('comment_save_pre', $_POST['content']);
    610     $content = format_to_post($content);
    611606
    612607    $result = $wpdb->query("
  • trunk/wp-includes/vars.php

    r1997 r2059  
    140140
    141141add_filter('pre_comment_content', 'wp_filter_kses');
    142 add_filter('pre_comment_content', 'format_to_post');
    143142add_filter('pre_comment_content', 'balanceTags', 30);
    144143
  • trunk/xmlrpc.php

    r2058 r2059  
    358358
    359359      $content = xmlrpc_removepostdata($content);
    360       $post_content = format_to_post($content);
     360      $post_content = apply_filters( 'content_save_pre', $content );
    361361
    362362      $post_date = current_time('mysql');
     
    412412
    413413      $content = xmlrpc_removepostdata($content);
    414       $post_content = format_to_post($content);
     414      $post_content = apply_filters( 'content_save_pre', $content );
    415415
    416416      $postdata = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt');
     
    490490
    491491      $post_title = $content_struct['title'];
    492       $post_content = format_to_post($content_struct['description']);
     492      $post_content = apply_filters( 'content_save_pre', $content_struct['description'] );
    493493      $post_status = $publish ? 'publish' : 'draft';
    494494
     
    573573
    574574      $post_title = $content_struct['title'];
    575       $post_content = format_to_post($content_struct['description']);
     575      $post_content = apply_filters( 'content_save_pre', $content_struct['description'] );
    576576      $catnames = $content_struct['categories'];
    577577       
Note: See TracChangeset for help on using the changeset viewer.