diff --git a/xmlrpc.php b/xmlrpc.php index 4fdbb06ae..ec103262a 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -1141,7 +1141,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 { @@ -1390,7 +1390,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 {