mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
After [33325], supply a missing post_type in ->mw_editPost().
Add unit test. Props ocean90. Fixes #20662. git-svn-id: https://develop.svn.wordpress.org/trunk@33612 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5281,6 +5281,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
if ( $post_type == 'post' && isset( $content_struct['sticky'] ) ) {
|
||||
$data = $newpost;
|
||||
$data['sticky'] = $content_struct['sticky'];
|
||||
$data['post_type'] = 'post';
|
||||
$error = $this->_toggle_sticky( $data, true );
|
||||
if ( $error ) {
|
||||
return $error;
|
||||
|
||||
Reference in New Issue
Block a user