metaWeblog.newPost fix. Props malex. fixes #5814 for 2.5
git-svn-id: https://develop.svn.wordpress.org/trunk@6815 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d74220c598
commit
ef77993bdc
|
@ -1141,7 +1141,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
$error_message = __( 'Sorry, you are not allowed to publish pages on this blog.' );
|
$error_message = __( 'Sorry, you are not allowed to publish pages on this blog.' );
|
||||||
$post_type = 'page';
|
$post_type = 'page';
|
||||||
}
|
}
|
||||||
elseif( $content_type['post_type'] == 'post' ) {
|
elseif( $content_struct['post_type'] == 'post' ) {
|
||||||
// This is the default, no changes needed
|
// This is the default, no changes needed
|
||||||
}
|
}
|
||||||
else {
|
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.' );
|
$error_message = __( 'Sorry, you are not allowed to publish pages on this blog.' );
|
||||||
$post_type = 'page';
|
$post_type = 'page';
|
||||||
}
|
}
|
||||||
elseif( $content_type['post_type'] == 'post' ) {
|
elseif( $content_struct['post_type'] == 'post' ) {
|
||||||
// This is the default, no changes needed
|
// This is the default, no changes needed
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue