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
* @param mixed $data Optional. Error data.
* @return WP_Error
*/
- function WP_Error($code = '', $message = '', $data = '') {
+ function __construct($code = '', $message = '', $data = '') {
if ( empty($code) )
return;