You appear to be a bot. Output may be restricted
Description
Wrapper to WP_error
Usage
$$error = bw_lazy_wp_error( $code, $text, $data );
Parameters
- $code
- ( string ) required – an error code
- $text
- ( string ) required – translatable error text – default null
- $data
- ( string ) required – default null
Returns
$error a new WP_error instance Would it be better to use exception handling than error handling?Source
File name: oik/includes/bw_error.incLines:
1 to 6 of 6
function bw_lazy_wp_error( $code, $text, $data ) { $error = new WP_error( $code, $text, $data ); //status_header( 404 ); bw_trace2( $error ); return( $error ); }View on GitHub View on Trac