diff --git a/wp-includes/functions.php b/wp-includes/functions.php
index 939ed50a55..aa05390c76 100644
a
|
b
|
function _default_wp_die_handler( $message, $title = '', $args = array() ) { |
3346 | 3346 | } |
3347 | 3347 | |
3348 | 3348 | $text_direction = $parsed_args['text_direction']; |
3349 | | if ( function_exists( 'language_attributes' ) && function_exists( 'is_rtl' ) ) { |
| 3349 | if ( ! empty( $args['text_direction'] ) && in_array( $args['text_direction'], array( 'ltr', 'rtl' ), true ) ){ |
| 3350 | $dir_attr = "dir='$text_direction'"; |
| 3351 | } else if ( function_exists( 'language_attributes' ) && function_exists( 'is_rtl' ) ) { |
3350 | 3352 | $dir_attr = get_language_attributes(); |
3351 | 3353 | } else { |
3352 | 3354 | $dir_attr = "dir='$text_direction'"; |