From d66551731316904162a8e63fe13b02aa49431a27 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 13 Feb 2008 17:53:52 +0000 Subject: [PATCH] metaWeblog.newPost fix. Props malex. fixes #5814 for 2.3 git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6814 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmlrpc.php b/xmlrpc.php index 56d58432ad..a4c5fd63dd 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -986,7 +986,7 @@ class wp_xmlrpc_server extends IXR_Server { $error_message = __( 'Sorry, you are not allowed to publish pages on this blog.' ); $post_type = 'page'; } - elseif( $content_type['post_type'] == 'post' ) { + elseif( $content_struct['post_type'] == 'post' ) { // This is the default, no changes needed } else { @@ -1207,7 +1207,7 @@ class wp_xmlrpc_server extends IXR_Server { $error_message = __( 'Sorry, you are not allowed to publish pages on this blog.' ); $post_type = 'page'; } - elseif( $content_type['post_type'] == 'post' ) { + elseif( $content_struct['post_type'] == 'post' ) { // This is the default, no changes needed } else {