Make WordPress Core

Ticket #49060: 49060.diff

File 49060.diff, 752 bytes (added by apedog, 5 years ago)
  • wp-includes/functions.php

    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() ) { 
    33463346                }
    33473347
    33483348                $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' ) ) {
    33503352                        $dir_attr = get_language_attributes();
    33513353                } else {
    33523354                        $dir_attr = "dir='$text_direction'";