<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[32550] trunk/src/wp-includes: Upgrade the doc blocks in `class-wp-xmlrpc-server.php`.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/32550">32550</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/32550","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>wonderboymusic</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-05-22 19:36:22 +0000 (Fri, 22 May 2015)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Upgrade the doc blocks in `class-wp-xmlrpc-server.php`. Rehabilitate some unfortunate use of tabbing.
See <a href="https://core.trac.wordpress.org/ticket/32444">#32444</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesclasswpthemephp">trunk/src/wp-includes/class-wp-theme.php</a></li>
<li><a href="#trunksrcwpincludesclasswpxmlrpcserverphp">trunk/src/wp-includes/class-wp-xmlrpc-server.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesclasswpthemephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-theme.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-theme.php 2015-05-22 17:58:42 UTC (rev 32549)
+++ trunk/src/wp-includes/class-wp-theme.php 2015-05-22 19:36:22 UTC (rev 32550)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -403,7 +403,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> static $keys = array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'Name', 'Version', 'Status', 'Title', 'Author', 'Author Name', 'Author URI', 'Description',
</span><span class="cx" style="display: block; padding: 0 10px"> 'Template', 'Stylesheet', 'Template Files', 'Stylesheet Files', 'Template Dir', 'Stylesheet Dir',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- 'Screenshot', 'Tags', 'Theme Root', 'Theme Root URI', 'Parent Theme',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'Screenshot', 'Tags', 'Theme Root', 'Theme Root URI', 'Parent Theme',
</ins><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> return in_array( $offset, $keys );
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpxmlrpcserverphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-xmlrpc-server.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-xmlrpc-server.php 2015-05-22 17:58:42 UTC (rev 32549)
+++ trunk/src/wp-includes/class-wp-xmlrpc-server.php 2015-05-22 19:36:22 UTC (rev 32550)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -158,7 +158,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param callable $name Method to call.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array $arguments Arguments to pass when calling.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return mixed|bool Return value of the callback, false otherwise.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return array|IXR_Error|false Return value of the callback, false otherwise.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function __call( $name, $arguments ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( '_multisite_getUsersBlogs' === $name ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -176,10 +176,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method Parameters.
</del><span class="cx" style="display: block; padding: 0 10px"> * @return string
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function sayHello($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function sayHello() {
</ins><span class="cx" style="display: block; padding: 0 10px"> return 'Hello!';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -188,10 +187,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method Parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters.
+ *
+ * @type int $number1 A number to add.
+ * @type int $number2 A second number to add.
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return int
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function addTwoNumbers($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function addTwoNumbers( $args ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> $number1 = $args[0];
</span><span class="cx" style="display: block; padding: 0 10px"> $number2 = $args[1];
</span><span class="cx" style="display: block; padding: 0 10px"> return $number1 + $number2;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -275,7 +279,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.2
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $data Escape single string or array of strings.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return string|array Type matches $data and sanitized for the database.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return string|null Returns with string is passed, alters by-reference
+ * when array is passed.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function escape( &$data ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! is_array( $data ) )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -354,6 +359,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Passes property through 'xmlrpc_blog_options' filter.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.6.0
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @global string $wp_version
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function initialise_blog_option_info() {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_version;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -514,9 +521,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.6.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - username
- * - password
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error Array contains:
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'isAdmin'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'url'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -587,7 +597,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string|array $args Sanitize single string or array of strings.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param int $count Minimum number of arguments.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return boolean if $args contains at least $count arguments.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return bool if $args contains at least $count arguments.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function minimum_args( $args, $count ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( count( $args ) < $count ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -651,7 +661,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function _prepare_term( $term ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $_term = $term;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- if ( ! is_array( $_term) )
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( ! is_array( $_term ) )
</ins><span class="cx" style="display: block; padding: 0 10px"> $_term = get_object_vars( $_term );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // For integers which may be larger than XML-RPC supports ensure we return strings.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1077,12 +1087,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - array $content_struct
- * $content_struct can contain:
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $content_struct can contain:
</ins><span class="cx" style="display: block; padding: 0 10px"> * - post_type (default: 'post')
</span><span class="cx" style="display: block; padding: 0 10px"> * - post_status (default: 'draft')
</span><span class="cx" style="display: block; padding: 0 10px"> * - post_title
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1101,6 +1112,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * - terms_names - array, with taxonomy names as keys and arrays of term names as values
</span><span class="cx" style="display: block; padding: 0 10px"> * - enclosure
</span><span class="cx" style="display: block; padding: 0 10px"> * - any other fields supported by wp_insert_post()
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|IXR_Error post_id
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_newPost( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1158,6 +1170,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param WP_User $user The post author if post_author isn't set in $content_struct.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array|IXR_Error $content_struct Post data to insert.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return IXR_Error|string
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function _insert_post( $user, $content_struct ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $defaults = array( 'post_status' => 'draft', 'post_type' => 'post', 'post_author' => 0,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1403,13 +1416,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - int $post_id
- * - array $content_struct
- * @return bool|IXR_Error true on success
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $post_id
+ * @type array $content_struct
+ * }
+ * @return true|IXR_Error true on success
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_editPost( $args ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $this->minimum_args( $args, 5 ) )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1466,12 +1482,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses wp_delete_post()
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - int $post_id
- * @return bool|IXR_Error true on success
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $post_id
+ * }
+ * @return true|IXR_Error true on success
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_deletePost( $args ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $this->minimum_args( $args, 4 ) )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1555,9 +1575,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $post_id = (int) $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $post_id = (int) $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[4] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $fields = $args[4];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1620,9 +1640,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $filter = isset( $args[3] ) ? $args[3] : array();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $filter = isset( $args[3] ) ? $args[3] : array();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[4] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $fields = $args[4];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1716,9 +1736,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $content_struct = $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $content_struct = $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $user = $this->login( $username, $password ) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1795,7 +1815,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'parent'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'description'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'slug'
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool|IXR_Error True, on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return true|IXR_Error True, on success.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_editTerm( $args ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $this->minimum_args( $args, 5 ) )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1803,10 +1823,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $term_id = (int) $args[3];
- $content_struct = $args[4];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $term_id = (int) $args[3];
+ $content_struct = $args[4];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $user = $this->login( $username, $password ) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1881,13 +1901,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses wp_delete_term()
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - string $taxnomy_name
- * - string $term_id
- * @return boolean|IXR_Error If it suceeded true else a reason why not
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type string $taxnomy_name
+ * @type string $term_id
+ * }
+ * @return bool|IXR_Error If it suceeded true else a reason why not
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_deleteTerm( $args ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $this->minimum_args( $args, 5 ) )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1939,12 +1963,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses get_term()
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - string $taxonomy
- * - string $term_id
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type string $taxnomy
+ * @type string $term_id
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error Array contains:
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'term_id'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'name'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2001,12 +2029,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Accepted keys are 'number', 'offset', 'orderby', 'order', 'hide_empty', and 'search'.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses get_terms()
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - string $taxonomy
- * - array $filter optional
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type string $taxnomy
+ * @type array $filter (optional)
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error terms
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getTerms( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2077,11 +2109,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses get_taxonomy()
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - string $taxonomy
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type string $taxnomy
+ * @type array $fields (optional)
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error (@see get_taxonomy())
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getTaxonomy( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2090,9 +2127,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $taxonomy = $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $taxonomy = $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[4] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $fields = $args[4];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2131,10 +2168,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses get_taxonomies()
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array taxonomies
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getTaxonomies( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2143,9 +2184,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $filter = isset( $args[3] ) ? $args[3] : array( 'public' => true );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $filter = isset( $args[3] ) ? $args[3] : array( 'public' => true );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[4] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $fields = $args[4];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2188,12 +2229,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * groups are 'basic' and 'all'.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses get_userdata()
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - int $user_id
- * - array $fields optional
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $user_id
+ * @type array $fields (optional)
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error Array contains (based on $fields parameter):
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'user_id'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'username'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2214,9 +2259,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $user_id = (int) $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $user_id = (int) $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[4] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $fields = $args[4];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2262,12 +2307,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses get_users()
</span><span class="cx" style="display: block; padding: 0 10px"> * @see wp_getUser() for more on $fields and return values
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - array $filter optional
- * - array $fields optional
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $filter (optional)
+ * @type array $fields (optional)
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error users data
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getUsers( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2276,9 +2324,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $filter = isset( $args[3] ) ? $args[3] : array();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $filter = isset( $args[3] ) ? $args[3] : array();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[4] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $fields = $args[4];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2333,11 +2381,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Retrieve information about the requesting user.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses get_userdata()
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - array $fields optional
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $fields (optional)
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error (@see wp_getUser)
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getProfile( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2346,8 +2398,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[3] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $fields = $args[3];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2374,12 +2426,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * Edit user's profile.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses wp_update_user()
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - array $content_struct
- * It can optionally contain:
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $content_struct It can optionally contain:
</ins><span class="cx" style="display: block; padding: 0 10px"> * - 'first_name'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'last_name'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'website'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2387,7 +2441,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'nickname'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'nicename'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'bio'
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool|IXR_Error True, on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * }
+ * @return true|IXR_Error True, on success.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_editProfile( $args ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $this->minimum_args( $args, 4 ) )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2450,19 +2505,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - blog_id (unused)
- * - page_id
- * - username
- * - password
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type int $page_id
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_getPage($args) {
- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_getPage( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $page_id = (int) $args[1];
- $username = $args[2];
- $password = $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $page_id = (int) $args[1];
+ $username = $args[2];
+ $password = $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2493,19 +2551,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - blog_id (unused)
- * - username
- * - password
- * - num_pages
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $num_pages
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_getPages($args) {
- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_getPages( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $num_pages = isset($args[3]) ? (int) $args[3] : 10;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $num_pages = isset($args[3]) ? (int) $args[3] : 10;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2539,13 +2600,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. See {@link wp_xmlrpc_server::mw_newPost()}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * See {@link wp_xmlrpc_server::mw_newPost()}
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $content_struct
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return int|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_newPage($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_newPage( $args ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> // Items not escaped here will be escaped in newPost.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $this->escape($args[1]);
- $password = $this->escape($args[2]);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $this->escape( $args[1] );
+ $password = $this->escape( $args[2] );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2565,15 +2634,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
- * @return bool|IXR_Error True, if success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $page_id
+ * }
+ * @return true|IXR_Error True, if success.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_deletePage($args) {
- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_deletePage( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $page_id = (int) $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $page_id = (int) $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2614,16 +2690,25 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type int $page_id
+ * @type string $username
+ * @type string $password
+ * @type string $content
+ * @type string $publish
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_editPage($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_editPage( $args ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> // Items not escaped here will be escaped in editPost.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $page_id = (int) $this->escape($args[1]);
- $username = $this->escape($args[2]);
- $password = $this->escape($args[3]);
- $content = $args[4];
- $publish = $args[5];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $page_id = (int) $this->escape($args[1]);
+ $username = $this->escape($args[2]);
+ $password = $this->escape($args[3]);
+ $content = $args[4];
+ $publish = $args[5];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2661,16 +2746,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global wpdb $wpdb
+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_getPageList($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_getPageList( $args ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2713,16 +2806,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_getAuthors($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_getAuthors( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
-
</del><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2749,14 +2847,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getTags( $args ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2791,15 +2895,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $category
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return int|IXR_Error Category ID.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_newCategory($args) {
- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_newCategory( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $category = $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $category = $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2860,15 +2971,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $category_id
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return bool|IXR_Error See {@link wp_delete_term()} for return info.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_deleteCategory($args) {
- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_deleteCategory( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $category_id = (int) $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $category_id = (int) $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2901,16 +3019,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.2.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $category
+ * @type int $max_results
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_suggestCategories($args) {
- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_suggestCategories( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $category = $args[3];
- $max_results = (int) $args[4];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $category = $args[3];
+ $max_results = (int) $args[4];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2938,7 +3064,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $comment_id
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getComment($args) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2979,15 +3112,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $struct
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error Contains a collection of comments. See {@link wp_xmlrpc_server::wp_getComment()} for a description of each item contents
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_getComments($args) {
- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_getComments( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $struct = isset( $args[3] ) ? $args[3] : array();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $struct = isset( $args[3] ) ? $args[3] : array();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3035,11 +3175,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - blog_id (unused)
- * - username
- * - password
- * - comment_id
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $comment_ID
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return bool|IXR_Error {@link wp_delete_comment()}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_deleteComment($args) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3097,16 +3240,25 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $comment_ID
+ * @type array $content_struct
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param array $args Contains:
</span><span class="cx" style="display: block; padding: 0 10px"> * - blog_id (unused)
</span><span class="cx" style="display: block; padding: 0 10px"> * - username
</span><span class="cx" style="display: block; padding: 0 10px"> * - password
</span><span class="cx" style="display: block; padding: 0 10px"> * - comment_id
</span><span class="cx" style="display: block; padding: 0 10px"> * - content_struct
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @return bool|IXR_Error True, on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return true|IXR_Error True, on success.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_editComment($args) {
- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_editComment( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $username = $args[1];
</span><span class="cx" style="display: block; padding: 0 10px"> $password = $args[2];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3185,15 +3337,23 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type string|int $post
+ * @type array $content_struct
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return int|IXR_Error {@link wp_new_comment()}
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_newComment($args) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape($args);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $post = $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $post = $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px"> $content_struct = $args[4];
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3288,14 +3448,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.7.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getCommentStatusList($args) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3314,11 +3480,18 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $post_id
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getCommentCount( $args ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $username = $args[1];
</span><span class="cx" style="display: block; padding: 0 10px"> $password = $args[2];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3347,14 +3520,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getPostStatusList( $args ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3373,14 +3552,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getPageStatusList( $args ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3399,14 +3584,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.6.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getPageTemplates( $args ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3425,7 +3616,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.6.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $options
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getOptions( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3478,7 +3676,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.6.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $options
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_setOptions( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3515,11 +3720,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - blog_id (unused)
- * - username
- * - password
- * - attachment_id
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $attachment_id
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error Associative array contains:
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'date_created_gmt'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'parent'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3530,8 +3738,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'description'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'metadata'
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function wp_getMediaItem($args) {
- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function wp_getMediaItem( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $username = $args[1];
</span><span class="cx" style="display: block; padding: 0 10px"> $password = $args[2];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3568,11 +3776,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - blog_id (unused)
- * - username
- * - password
- * - filter
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $struct
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error Contains a collection of media items. See {@link wp_xmlrpc_server::wp_getMediaItem()} for a description of each item contents
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getMediaLibrary($args) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3611,10 +3822,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - blog_id (unused)
- * - username
- * - password
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getPostFormats( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3658,12 +3872,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses get_post_type_object()
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - string $post_type_name
- * - array $fields
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type string $post_type_name
+ * @type array $fields (optional)
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error Array contains:
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'labels'
</span><span class="cx" style="display: block; padding: 0 10px"> * - 'description'
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3722,12 +3939,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses get_post_types()
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - array $filter
- * - array $fields
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $filter (optional)
+ * @type array $fields (optional)
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getPostTypes( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3736,9 +3956,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $filter = isset( $args[3] ) ? $args[3] : array( 'public' => true );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $filter = isset( $args[3] ) ? $args[3] : array( 'public' => true );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[4] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $fields = $args[4];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3778,12 +3998,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses wp_get_post_revisions()
</span><span class="cx" style="display: block; padding: 0 10px"> * @see wp_getPost() for more on $fields
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - int $post_id
- * - array $fields
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $post_id
+ * @type array $fields (optional)
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error contains a collection of posts.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_getRevisions( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3792,9 +4015,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape( $args );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
- $post_id = (int) $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
+ $post_id = (int) $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[4] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $fields = $args[4];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3854,11 +4077,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @uses wp_restore_post_revision()
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - int $blog_id (unused)
- * - string $username
- * - string $password
- * - int $post_id
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $revision_id
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return bool|IXR_Error false if there was an error restoring, true if success.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function wp_restoreRevision( $args ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3909,7 +4135,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function blogger_getUsersBlogs($args) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3919,7 +4151,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape($args);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $username = $args[1];
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -3978,15 +4210,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function blogger_getUserInfo($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function blogger_getUserInfo( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
-
</del><span class="cx" style="display: block; padding: 0 10px"> $username = $args[1];
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4013,16 +4250,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type int $post_ID
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function blogger_getPost($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function blogger_getPost( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
-
- $post_ID = (int) $args[1];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post_ID = (int) $args[1];
</ins><span class="cx" style="display: block; padding: 0 10px"> $username = $args[2];
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $password = $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $password = $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4058,16 +4301,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type string $appkey (unused)
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $numberposts (optional)
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function blogger_getRecentPosts($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function blogger_getRecentPosts( $args ) {
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape($args);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // $args[0] = appkey - ignored
</span><span class="cx" style="display: block; padding: 0 10px"> $username = $args[2];
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $password = $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $password = $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[4] ) )
</span><span class="cx" style="display: block; padding: 0 10px"> $query = array( 'numberposts' => absint( $args[4] ) );
</span><span class="cx" style="display: block; padding: 0 10px"> else
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4139,17 +4390,25 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type string $appkey (unused)
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type string $content
+ * @type string $publish
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return int|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function blogger_newPost($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function blogger_newPost( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
-
</del><span class="cx" style="display: block; padding: 0 10px"> $username = $args[2];
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $password = $args[3];
- $content = $args[4];
- $publish = $args[5];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $password = $args[3];
+ $content = $args[4];
+ $publish = $args[5];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4201,17 +4460,25 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
- * @return bool|IXR_Error true when done.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type int $post_ID
+ * @type string $username
+ * @type string $password
+ * @type string $content
+ * }
+ * @return true|IXR_Error true when done.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function blogger_editPost( $args ) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape($args);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post_ID = (int) $args[1];
- $username = $args[2];
- $password = $args[3];
- $content = $args[4];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post_ID = (int) $args[1];
+ $username = $args[2];
+ $password = $args[3];
+ $content = $args[4];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! $user = $this->login( $username, $password ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4268,15 +4535,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
- * @return bool|IXR_Error True when post is deleted.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type int $post_ID
+ * @type string $username
+ * @type string $password
+ * }
+ * @return true|IXR_Error True when post is deleted.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function blogger_deletePost($args) {
- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function blogger_deletePost( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post_ID = (int) $args[1];
- $username = $args[2];
- $password = $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post_ID = (int) $args[1];
+ $username = $args[2];
+ $password = $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4341,21 +4615,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters. Contains:
- * - blog_id (unused)
- * - username
- * - password
- * - content_struct
- * - publish
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $content_struct
+ * @type int $publish
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return int|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function mw_newPost($args) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape($args);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px"> $content_struct = $args[3];
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $publish = isset( $args[4] ) ? $args[4] : 0;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $publish = isset( $args[4] ) ? $args[4] : 0;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4654,6 +4931,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global wpdb $wpdb
+ *
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param int $post_ID Post ID.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $post_content Post Content for attachment.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4675,13 +4954,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $content_struct
+ * @type int $publish
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return bool|IXR_Error True on success.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mw_editPost($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mw_editPost( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
-
</del><span class="cx" style="display: block; padding: 0 10px"> $post_ID = (int) $args[0];
</span><span class="cx" style="display: block; padding: 0 10px"> $username = $args[1];
</span><span class="cx" style="display: block; padding: 0 10px"> $password = $args[2];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -4967,17 +5253,23 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type int $post_ID
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mw_getPost($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mw_getPost( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post_ID = (int) $args[0];
+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post_ID = (int) $args[0];
- $username = $args[1];
- $password = $args[2];
-
</del><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5092,15 +5384,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $numberposts
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mw_getRecentPosts($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mw_getRecentPosts( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
-
- $username = $args[1];
- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[3] ) )
</span><span class="cx" style="display: block; padding: 0 10px"> $query = array( 'numberposts' => absint( $args[3] ) );
</span><span class="cx" style="display: block; padding: 0 10px"> else
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5204,16 +5502,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mw_getCategories($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mw_getCategories( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
-
</del><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5252,15 +5555,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global wpdb $wpdb
+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type array $data
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mw_newMediaObject($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mw_newMediaObject( $args ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $this->escape($args[1]);
- $password = $this->escape($args[2]);
- $data = $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $this->escape( $args[1] );
+ $password = $this->escape( $args[2] );
+ $data = $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $name = sanitize_file_name( $data['name'] );
</span><span class="cx" style="display: block; padding: 0 10px"> $type = $data['type'];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5365,15 +5677,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * @type int $numberposts
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mt_getRecentPostTitles($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mt_getRecentPostTitles( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
-
- $username = $args[1];
- $password = $args[2];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $args[3] ) )
</span><span class="cx" style="display: block; padding: 0 10px"> $query = array( 'numberposts' => absint( $args[3] ) );
</span><span class="cx" style="display: block; padding: 0 10px"> else
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5419,16 +5737,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $blog_id (unused)
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mt_getCategoryList($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mt_getCategoryList( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $username = $args[1];
- $password = $args[2];
-
</del><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5458,17 +5781,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $post_ID
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mt_getPostCategories($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mt_getPostCategories( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post_ID = (int) $args[0];
+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post_ID = (int) $args[0];
- $username = $args[1];
- $password = $args[2];
-
</del><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5502,17 +5830,23 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
- * @return bool|IXR_Error True on success.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $post_ID
+ * @type string $username
+ * @type string $password
+ * @type array $categories
+ * }
+ * @return true|IXR_Error True on success.
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mt_setPostCategories($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mt_setPostCategories( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
-
- $post_ID = (int) $args[0];
- $username = $args[1];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post_ID = (int) $args[0];
+ $username = $args[1];
</ins><span class="cx" style="display: block; padding: 0 10px"> $password = $args[2];
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $categories = $args[3];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $categories = $args[3];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5541,30 +5875,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><span class="cx" style="display: block; padding: 0 10px"> * @return array
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mt_supportedMethods($args) {
-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mt_supportedMethods() {
</ins><span class="cx" style="display: block; padding: 0 10px"> /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( 'xmlrpc_call', 'mt.supportedMethods' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $supported_methods = array();
- foreach ( $this->methods as $key => $value ) {
- $supported_methods[] = $key;
- }
-
- return $supported_methods;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ return array_keys( $this->methods );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Retrieve an empty array because we don't support per-post text filters.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- *
- * @param array $args Method parameters.
</del><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mt_supportedTextFilters($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mt_supportedTextFilters() {
</ins><span class="cx" style="display: block; padding: 0 10px"> /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( 'xmlrpc_call', 'mt.supportedTextFilters' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5583,15 +5908,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global wpdb $wpdb
+ *
+ * @param int $post_ID
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mt_getTrackbackPings($args) {
-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mt_getTrackbackPings( $post_ID ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post_ID = intval($args);
-
</del><span class="cx" style="display: block; padding: 0 10px"> /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( 'xmlrpc_call', 'mt.getTrackbackPings' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5626,17 +5950,22 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type int $post_ID
+ * @type string $username
+ * @type string $password
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return int|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function mt_publishPost($args) {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function mt_publishPost( $args ) {
+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $post_ID = (int) $args[0];
+ $username = $args[1];
+ $password = $args[2];
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $post_ID = (int) $args[0];
- $username = $args[1];
- $password = $args[2];
-
</del><span class="cx" style="display: block; padding: 0 10px"> if ( !$user = $this->login($username, $password) )
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->error;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5657,9 +5986,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $postdata['post_category'] = $cats;
</span><span class="cx" style="display: block; padding: 0 10px"> $this->escape($postdata);
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $result = wp_update_post($postdata);
-
- return $result;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ return wp_update_post( $postdata );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* PingBack functions
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5671,24 +5998,29 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global wpdb $wpdb
+ * @global string $wp_version
+ *
+ * @param array $args {
+ * Method parameters, in this order:
+ *
+ * @type string $pagelinkedfrom
+ * @type string $pagelinkedto
+ * }
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return string|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function pingback_ping($args) {
- global $wpdb;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function pingback_ping( $args ) {
+ global $wpdb, $wp_version;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( 'xmlrpc_call', 'pingback.ping' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->escape( $args );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $pagelinkedfrom = $args[0];
- $pagelinkedto = $args[1];
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $pagelinkedfrom = str_replace( '&', '&', $args[0] );
+ $pagelinkedto = str_replace( '&', '&', $args[1] );
+ $pagelinkedto = str_replace( '&', '&', $pagelinkedto );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom);
- $pagelinkedto = str_replace('&', '&', $pagelinkedto);
- $pagelinkedto = str_replace('&', '&', $pagelinkedto);
-
</del><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Filter the pingback source URI.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5766,7 +6098,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /** This filter is documented in wp-includes/class-http.php */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . $GLOBALS['wp_version'] . '; ' . get_bloginfo( 'url' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Let's check the remote site
</span><span class="cx" style="display: block; padding: 0 10px"> $http_api_args = array(
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5877,20 +6209,19 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 1.5.0
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @param array $args Method parameters.
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @global wpdb $wpdb
+ *
+ * @param string $url
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return array|IXR_Error
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- public function pingback_extensions_getPingbacks($args) {
-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ public function pingback_extensions_getPingbacks( $url ) {
</ins><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
</span><span class="cx" style="display: block; padding: 0 10px"> do_action( 'xmlrpc_call', 'pingback.extensions.getPingbacks' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $this->escape($args);
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $url = $this->escape( $url );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $url = $args;
-
</del><span class="cx" style="display: block; padding: 0 10px"> $post_ID = url_to_postid($url);
</span><span class="cx" style="display: block; padding: 0 10px"> if ( !$post_ID ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // We aren't sure that the resource is available and/or pingback enabled
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -5921,6 +6252,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * @param integer $code
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string $message
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @return IXR_Error
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function pingback_error( $code, $message ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span></span></pre>
</div>
</div>
</body>
</html>