WordPress.org

Make WordPress Core

Ticket #24977: 24977.theme-editor-dir.diff

File 24977.theme-editor-dir.diff, 934 bytes (added by yoavf, 7 years ago)

the theme editor needs to be LTR by default. HTML is better than css for that.

  • src/wp-admin/theme-editor.php

     
    199199else : ?>
    200200        <form name="template" id="template" action="theme-editor.php" method="post">
    201201        <?php wp_nonce_field( 'edit-theme_' . $file . $stylesheet ); ?>
    202                 <div><textarea cols="70" rows="30" name="newcontent" id="newcontent" aria-describedby="newcontent-description"><?php echo $content; ?></textarea>
     202                <div><textarea dir="ltr" cols="70" rows="30" name="newcontent" id="newcontent" aria-describedby="newcontent-description"><?php echo $content; ?></textarea>
    203203                <input type="hidden" name="action" value="update" />
    204204                <input type="hidden" name="file" value="<?php echo esc_attr( $relative_file ); ?>" />
    205205                <input type="hidden" name="theme" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" />