equal
deleted
inserted
replaced
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']; |