Make WordPress Core

Changeset 2059 for trunk/xmlrpc.php


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

Cleaning up filters and format-to-post

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.