Changeset 42217 for trunk/src/wp-includes/functions.php
- Timestamp:
- 11/23/2017 04:08:42 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r42207 r42217 2756 2756 elseif ( function_exists( 'is_rtl' ) && is_rtl() ) 2757 2757 $text_direction = 'rtl'; 2758 2759 if ( function_exists( 'language_attributes' ) && function_exists( 'is_rtl' ) ) { 2760 $dir_attr = get_language_attributes(); 2761 } else { 2762 $dir_attr = "dir='$text_direction'"; 2763 } 2758 2764 ?> 2759 2765 <!DOCTYPE html> 2760 <html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists( 'language_attributes' ) && function_exists( 'is_rtl' ) ) language_attributes(); else echo "dir='$text_direction'"; ?>>2766 <html xmlns="http://www.w3.org/1999/xhtml" <?php echo $dir_attr; ?>> 2761 2767 <head> 2762 2768 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> … … 3769 3775 nocache_headers(); 3770 3776 header( 'Content-Type: text/html; charset=utf-8' ); 3777 3778 $dir_attr = ''; 3779 if ( is_rtl() ) { 3780 $dir_attr = ' dir="rtl"'; 3781 } 3771 3782 ?> 3772 3783 <!DOCTYPE html> 3773 <html xmlns="http://www.w3.org/1999/xhtml"<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>3784 <html xmlns="http://www.w3.org/1999/xhtml"<?php echo $dir_attr; ?>> 3774 3785 <head> 3775 3786 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Note: See TracChangeset
for help on using the changeset viewer.