Make WordPress Core


Ignore:
Timestamp:
02/08/2012 06:05:35 AM (13 years ago)
Author:
nacin
Message:

Use is_rtl() for html direction when possible. In sites.php, language_attributes() will always exist (MU vestige). When the DB is dead, language_attributes() is worse than a simple is_rtl() check. is_rtl() exists here due to wp_load_translations_early(). see #18180.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/load.php

    r19836 r19862  
    169169?>
    170170    <!DOCTYPE html>
    171     <html xmlns="http://www.w3.org/1999/xhtml">
     171    <html xmlns="http://www.w3.org/1999/xhtml"<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>
    172172    <head>
    173173    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Note: See TracChangeset for help on using the changeset viewer.