joziggy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 500 Internal Server error<?php
/**
* WordPress Error API.
*
* Contains the WP_Error class and the is_wp_error() function.
*
* @package WordPress
*//**
* WordPress Error class.
*
* Container for checking for WordPress errors and error messages. Return
* WP_Error and use is_wp_error() to check if this class is returned. Many
* core WordPress functions pass this class in the event of an error and
* if not handled properly will result in code errors.
*
* @package WordPress
* @since 2.1.0
*/
class WP_Error {
/**
* Stores the list of errors.
*
* @since 2.1.0
* @var array
*/
public $errors = array();/**
* Stores the list of data for error codes.
*
* @since 2.1.0
* @var array
*/
public $error_data = array();/**
* Initialize the error.
*
* If$codeis empty, the other parameters will be ignored.
* When$codeis not empty,$messagewill be used even if
* it is empty. The$dataparameter will be used only if it
* is not empty.
*
* Though the class is constructed with a single error code and
* message, multiple codes can be added using theadd()method.
*
* @since 2.1.0
*
* @param string|int $code Error code
* @param string $message Error message
* @param mixed $data Optional. Error data.
*/
public function __construct( $code = ”, $message = ”, $data = ” ) {
if ( empty($code) )
return;$this->errors[$code][] = $message;
if ( ! empty($data) )
$this->error_data[$code] = $data;
}Forum: Fixing WordPress
In reply to: 500 Internal Server errorThank you for that. Is it really thick of me to ask is that My server? Or ww.wp.xz.cn or who?
TIAI appreciate your answer so swiftly too, that was nice