mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Cleaning up filters and format-to-post
git-svn-id: https://develop.svn.wordpress.org/trunk@2059 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+4
-4
@@ -357,7 +357,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$post_category = xmlrpc_getpostcategory($content);
|
||||
|
||||
$content = xmlrpc_removepostdata($content);
|
||||
$post_content = format_to_post($content);
|
||||
$post_content = apply_filters( 'content_save_pre', $content );
|
||||
|
||||
$post_date = current_time('mysql');
|
||||
$post_date_gmt = current_time('mysql', 1);
|
||||
@@ -411,7 +411,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$post_category = xmlrpc_getpostcategory($content);
|
||||
|
||||
$content = xmlrpc_removepostdata($content);
|
||||
$post_content = format_to_post($content);
|
||||
$post_content = apply_filters( 'content_save_pre', $content );
|
||||
|
||||
$postdata = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt');
|
||||
|
||||
@@ -489,7 +489,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$post_author = $user_data->ID;
|
||||
|
||||
$post_title = $content_struct['title'];
|
||||
$post_content = format_to_post($content_struct['description']);
|
||||
$post_content = apply_filters( 'content_save_pre', $content_struct['description'] );
|
||||
$post_status = $publish ? 'publish' : 'draft';
|
||||
|
||||
$post_excerpt = $content_struct['mt_excerpt'];
|
||||
@@ -572,7 +572,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
extract($postdata);
|
||||
|
||||
$post_title = $content_struct['title'];
|
||||
$post_content = format_to_post($content_struct['description']);
|
||||
$post_content = apply_filters( 'content_save_pre', $content_struct['description'] );
|
||||
$catnames = $content_struct['categories'];
|
||||
|
||||
if ($catnames) {
|
||||
|
||||
Reference in New Issue
Block a user