After [33325], supply a missing `post_type` in `->mw_editPost()`.
Add unit test. Props ocean90. Fixes #20662. Built from https://develop.svn.wordpress.org/trunk@33612 git-svn-id: http://core.svn.wordpress.org/trunk@33579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2c9e81349c
commit
4a1f50f732
|
@ -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;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-RC2-33611';
|
||||
$wp_version = '4.3-RC2-33612';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue