WordPress.org

Make WordPress Core

Ticket #6132: i18n-rtl-no-config.diff

File i18n-rtl-no-config.diff, 2.7 KB (added by nbachiyski, 11 years ago)
  • wp-includes/functions.php

     
    23762376                        $title = 'WordPress › Error';
    23772377        }
    23782378
     2379        $text_direction = 'ltr';
     2380        if ( isset($r['text_direction']) && $r['text_direction'] == 'rtl' ) $text_direction = 'rtl';
     2381        if ( ( $wp_locale ) && ( 'rtl' == $wp_locale->text_direction ) ) $text_direction = 'rtl';
    23792382?>
    23802383<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    23812384<html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists( 'language_attributes' ) ) language_attributes(); ?>>
     
    23842387        <title><?php echo $title ?></title>
    23852388        <link rel="stylesheet" href="<?php echo $admin_dir; ?>css/install.css" type="text/css" />
    23862389<?php
    2387 if ( ( $wp_locale ) && ( 'rtl' == $wp_locale->text_direction ) ) : ?>
     2390if ( 'rtl' == $text_direction ) : ?>
    23882391        <link rel="stylesheet" href="<?php echo $admin_dir; ?>css/install-rtl.css" type="text/css" />
    23892392<?php endif; ?>
    23902393</head>
  • wp-load.php

     
    4343        require_once( ABSPATH . '/wp-includes/classes.php' );
    4444        require_once( ABSPATH . '/wp-includes/functions.php' );
    4545        require_once( ABSPATH . '/wp-includes/plugin.php' );
    46         wp_die(sprintf(/*WP_I18N_NO_CONFIG*/"There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%ssetup-config.php' class='button'>Create a Configuration File</a>"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/"WordPress &rsaquo; Error"/*/WP_I18N_ERROR_TITLE*/);
     46        $text_direction = /*WP_I18N_TEXT_DIRECTION*/"ltr"/*/WP_I18N_TEXT_DIRECTION*/;
     47        wp_die(sprintf(/*WP_I18N_NO_CONFIG*/"There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='%ssetup-config.php' class='button'>Create a Configuration File</a>"/*/WP_I18N_NO_CONFIG*/, $path), /*WP_I18N_ERROR_TITLE*/"WordPress &rsaquo; Error"/*/WP_I18N_ERROR_TITLE*/, array('text_direction' => $text_direction));
    4748
    4849}
    4950