mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 13:37:51 +01:00
metaWeblog.newPost fix. Props malex. fixes #5814 for 2.5
git-svn-id: http://svn.automattic.com/wordpress/trunk@6815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6199f2dc76
commit
1bb2ce0e08
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user