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:
ryan
2011-04-29 20:05:12 +00:00
parent e0ffff9fb5
commit 04487fc268
33 changed files with 54 additions and 122 deletions

View File

@@ -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;