In `wp_xmlrpc_server`, remove dead code.
See #30799. Built from https://develop.svn.wordpress.org/trunk@31092 git-svn-id: http://core.svn.wordpress.org/trunk@31073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
383a5c6c24
commit
ac6fddee35
|
@ -2545,8 +2545,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
// Items not escaped here will be escaped in newPost.
|
// Items not escaped here will be escaped in newPost.
|
||||||
$username = $this->escape($args[1]);
|
$username = $this->escape($args[1]);
|
||||||
$password = $this->escape($args[2]);
|
$password = $this->escape($args[2]);
|
||||||
$page = $args[3];
|
|
||||||
$publish = $args[4];
|
|
||||||
|
|
||||||
if ( !$user = $this->login($username, $password) )
|
if ( !$user = $this->login($username, $password) )
|
||||||
return $this->error;
|
return $this->error;
|
||||||
|
@ -4213,7 +4211,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
$username = $args[2];
|
$username = $args[2];
|
||||||
$password = $args[3];
|
$password = $args[3];
|
||||||
$content = $args[4];
|
$content = $args[4];
|
||||||
$publish = $args[5];
|
|
||||||
|
|
||||||
if ( ! $user = $this->login( $username, $password ) ) {
|
if ( ! $user = $this->login( $username, $password ) ) {
|
||||||
return $this->error;
|
return $this->error;
|
||||||
|
@ -4279,7 +4276,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
$post_ID = (int) $args[1];
|
$post_ID = (int) $args[1];
|
||||||
$username = $args[2];
|
$username = $args[2];
|
||||||
$password = $args[3];
|
$password = $args[3];
|
||||||
$publish = $args[4];
|
|
||||||
|
|
||||||
if ( !$user = $this->login($username, $password) )
|
if ( !$user = $this->login($username, $password) )
|
||||||
return $this->error;
|
return $this->error;
|
||||||
|
@ -4449,7 +4445,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return new IXR_Error( 401, __( 'Invalid post type' ) );
|
return new IXR_Error( 401, __( 'Invalid post type' ) );
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
$author = get_userdata( $content_struct['wp_author_id'] );
|
$author = get_userdata( $content_struct['wp_author_id'] );
|
||||||
if ( ! $author )
|
if ( ! $author )
|
||||||
|
@ -4737,7 +4732,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
$menu_order = $postdata['menu_order'];
|
$menu_order = $postdata['menu_order'];
|
||||||
|
|
||||||
// Let WordPress manage slug if none was provided.
|
// Let WordPress manage slug if none was provided.
|
||||||
$post_name = "";
|
|
||||||
$post_name = $postdata['post_name'];
|
$post_name = $postdata['post_name'];
|
||||||
if ( isset($content_struct['wp_slug']) )
|
if ( isset($content_struct['wp_slug']) )
|
||||||
$post_name = $content_struct['wp_slug'];
|
$post_name = $content_struct['wp_slug'];
|
||||||
|
@ -4773,7 +4767,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return new IXR_Error( 401, __( 'Invalid post type' ) );
|
return new IXR_Error( 401, __( 'Invalid post type' ) );
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
$post_author = $content_struct['wp_author_id'];
|
$post_author = $content_struct['wp_author_id'];
|
||||||
}
|
}
|
||||||
|
@ -5685,8 +5678,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
$pagelinkedfrom = $args[0];
|
$pagelinkedfrom = $args[0];
|
||||||
$pagelinkedto = $args[1];
|
$pagelinkedto = $args[1];
|
||||||
|
|
||||||
$title = '';
|
|
||||||
|
|
||||||
$pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom);
|
$pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom);
|
||||||
$pagelinkedto = str_replace('&', '&', $pagelinkedto);
|
$pagelinkedto = str_replace('&', '&', $pagelinkedto);
|
||||||
$pagelinkedto = str_replace('&', '&', $pagelinkedto);
|
$pagelinkedto = str_replace('&', '&', $pagelinkedto);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-alpha-31091';
|
$wp_version = '4.2-alpha-31092';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue