Make WordPress Core

Ticket #16852: 16852.diff

File 16852.diff, 581 bytes (added by bergius, 14 years ago)
  • wp-includes/general-template.php

     
    18901890        $attributes = array();
    18911891        $output = '';
    18921892
    1893         if ( function_exists( 'is_rtl' ) )
    1894                 $attributes[] = 'dir="' . ( is_rtl() ? 'rtl' : 'ltr' ) . '"';
     1893        if ( function_exists( 'is_rtl' ) && is_rtl() )
     1894    $attributes[] = 'dir="rtl"';
    18951895
    18961896        if ( $lang = get_bloginfo('language') ) {
    18971897                if ( get_option('html_type') == 'text/html' || $doctype == 'html' )