wp/wp-includes/error-protection.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
    39 /**
    39 /**
    40  * Get a human readable description of an extension's error.
    40  * Get a human readable description of an extension's error.
    41  *
    41  *
    42  * @since 5.2.0
    42  * @since 5.2.0
    43  *
    43  *
    44  * @param array $error Error details {@see error_get_last()}
    44  * @param array $error Error details from `error_get_last()`.
    45  * @return string Formatted error description.
    45  * @return string Formatted error description.
    46  */
    46  */
    47 function wp_get_extension_error_description( $error ) {
    47 function wp_get_extension_error_description( $error ) {
    48 	$constants   = get_defined_constants( true );
    48 	$constants   = get_defined_constants( true );
    49 	$constants   = isset( $constants['Core'] ) ? $constants['Core'] : $constants['internal'];
    49 	$constants   = isset( $constants['Core'] ) ? $constants['Core'] : $constants['internal'];