_default_wp_die_handler
函数
      _default_wp_die_handler ( $message, $title = '', $args = array() )    
  - Access
 - Private
 
- 傿•°
 - 
- 
                (string|WP_Error)
$message
Error message or WP_Error object.- Required: 是
 
 - 
                (string)
$title
Optional. Error title. Default empty.- Required: å¦
 - Default: (empty)
 
 - 
                (string|array)
$args
Optional. Arguments to control behavior. Default empty array.- Required: å¦
 - Default: array()
 
 
 - 
                (string|WP_Error)
 
- 定义ä½ç½®
 - 
- 
                                  wp-includes/functions.php
, line 3735 
 - 
                                  wp-includes/functions.php
 
- 引入
 - 3.0.0
 
- 弃用
 - –
 
Kills WordPress execution and displays HTML page with an error message.
This is the default handler for wp_die(). If you want a custom one,
you can override this using the {@see ‘wp_die_handler’} filter in wp_die().
function _default_wp_die_handler( $message, $title = '', $args = array() ) {
	list( $message, $title, $parsed_args ) = _wp_die_process_input( $message, $title, $args );
	if ( is_string( $message ) ) {
		if ( ! empty( $parsed_args['additional_errors'] ) ) {
			$message = array_merge(
				array( $message ),
				wp_list_pluck( $parsed_args['additional_errors'], 'message' )
			);
			$message = "
- ntt
 - ” . implode( “
 - “, $message ) . “
 
ntt
nt
“;
		}
		$message = sprintf(
			‘
‘,
			$message
		);
	}
$have_gettext = function_exists( ‘__’ );
	if ( ! empty( $parsed_args[‘link_url’] ) && ! empty( $parsed_args[‘link_text’] ) ) {
		$link_url = $parsed_args[‘link_url’];
		if ( function_exists( ‘esc_url’ ) ) {
			$link_url = esc_url( $link_url );
		}
		$link_text = $parsed_args[‘link_text’];
		$message  .= “n
{$link_text}
“;
	}
	if ( isset( $parsed_args[‘back_link’] ) && $parsed_args[‘back_link’] ) {
		$back_text = $have_gettext ? __( ‘« Back’ ) : ‘« Back’;
		$message  .= “n
$back_text
“;
	}
	if ( ! did_action( ‘admin_head’ ) ) :
		if ( ! headers_sent() ) {
			header( “Content-Type: text/html; charset={$parsed_args[‘charset’]}” );
			status_header( $parsed_args[‘response’] );
			nocache_headers();
		}
		$text_direction = $parsed_args[‘text_direction’];
		$dir_attr       = “dir=’$text_direction'”;
		// If `text_direction` was not explicitly passed,
		// use get_language_attributes() if available.
		if ( empty( $args[‘text_direction’] )
			&& function_exists( ‘language_attributes’ ) && function_exists( ‘is_rtl’ )
		) {
			$dir_attr = get_language_attributes();
		}
		?>
>