WordPress.org

Make WordPress Core

Changeset 21904


Ignore:
Timestamp:
09/18/2012 11:08:46 PM (6 years ago)
Author:
nacin
Message:

Stop outputting the default dir="ltr" in language_attributes(). props bergius. fixes #16852.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r21735 r21904  
    18471847    $output = '';
    18481848
    1849     if ( function_exists( 'is_rtl' ) )
    1850         $attributes[] = 'dir="' . ( is_rtl() ? 'rtl' : 'ltr' ) . '"';
     1849    if ( function_exists( 'is_rtl' ) && is_rtl() )
     1850        $attributes[] = 'dir="rtl"';
    18511851
    18521852    if ( $lang = get_bloginfo('language') ) {
Note: See TracChangeset for help on using the changeset viewer.