mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Constructor cleanup. Props ocean90. fixes #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
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