Make WordPress Core

Changeset 19862


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.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r19808 r19862  
    1111?>
    1212<!DOCTYPE html>
    13 <html xmlns="http://www.w3.org/1999/xhtml" >
     13<html xmlns="http://www.w3.org/1999/xhtml">
    1414<head>
    1515    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  • trunk/wp-admin/network/sites.php

    r19579 r19862  
    211211            ?>
    212212            <!DOCTYPE html>
    213             <html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists( 'language_attributes' ) ) language_attributes(); ?>>
     213            <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    214214                <head>
    215215                    <title><?php _e( 'WordPress &rsaquo; Confirm your action' ); ?></title>
  • trunk/wp-includes/functions.php

    r19801 r19862  
    26582658?>
    26592659<!DOCTYPE html>
    2660 <html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists( 'language_attributes' ) ) language_attributes(); ?>>
     2660<html xmlns="http://www.w3.org/1999/xhtml"<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>
    26612661<head>
    26622662<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  • 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.