Constructor cleanup. Props ocean90. fixes #16768
git-svn-id: http://svn.automattic.com/wordpress/trunk@17771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -38,7 +38,7 @@ class WP_Error {
|
||||
var $error_data = array();
|
||||
|
||||
/**
|
||||
* PHP4 Constructor - Sets up error message.
|
||||
* Constructor - Sets up error message.
|
||||
*
|
||||
* If code parameter is empty then nothing will be done. It is possible to
|
||||
* add multiple messages to the same code, but with other methods in the
|
||||
@@ -54,7 +54,7 @@ class WP_Error {
|
||||
* @param mixed $data Optional. Error data.
|
||||
* @return WP_Error
|
||||
*/
|
||||
function WP_Error($code = '', $message = '', $data = '') {
|
||||
function __construct($code = '', $message = '', $data = '') {
|
||||
if ( empty($code) )
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user