XML-RPC: Add default values to IXR_Message for PHP 7.2 compatibility to avoid PHP Warnings.

Props dd32.
Merges [42652] to the 4.9 branch.
Fixes #43216.
Built from https://develop.svn.wordpress.org/branches/4.9@42806


git-svn-id: http://core.svn.wordpress.org/branches/4.9@42636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2018-03-08 19:56:40 +00:00
parent e0f0ee5de6
commit 652bc5d967
2 changed files with 7 additions and 7 deletions

View File

@ -9,12 +9,12 @@
*/ */
class IXR_Message class IXR_Message
{ {
var $message; var $message = false;
var $messageType; // methodCall / methodResponse / fault var $messageType = false; // methodCall / methodResponse / fault
var $faultCode; var $faultCode = false;
var $faultString; var $faultString = false;
var $methodName; var $methodName = '';
var $params; var $params = array();
// Current variable stacks // Current variable stacks
var $_arraystructs = array(); // The stack used to keep track of the current array/struct var $_arraystructs = array(); // The stack used to keep track of the current array/struct

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.9.5-alpha-42805'; $wp_version = '4.9.5-alpha-42806';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.