Make WordPress Core


Ignore:
Timestamp:
07/27/2012 04:49:48 PM (14 years ago)
Author:
azaozz
Message:

Move the description for tabbing out of the plugin and theme editors textareas to the Help tab, fixes #21347

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r21311 r21358  
    2828    <p>' . __('Begin by choosing a theme to edit from the dropdown menu and clicking Select. A list then appears of all the template files. Clicking once on any file name causes the file to appear in the large Editor box.') . '</p>
    2929    <p>' . __('For PHP files, you can use the Documentation dropdown to select from functions recognized in that file. Lookup takes you to a web page with reference material about that particular function.') . '</p>
     30    <p id="newcontent-description">' . __('In the editing area the Tab key enters a tab character. To move below this area by pressing Tab, press the Esc key followed by the Tab key.') . '</p>
    3031    <p>' . __('After typing in your edits, click Update File.') . '</p>
    3132    <p>' . __('<strong>Advice:</strong> think very carefully about your site crashing if you are live-editing the theme currently in use.') . '</p>
     
    199200    <form name="template" id="template" action="theme-editor.php" method="post">
    200201    <?php wp_nonce_field( 'edit-theme_' . $file . $stylesheet ); ?>
    201         <div><textarea cols="70" rows="30" name="newcontent" id="newcontent" aria-describedby="newcontent-description"><?php echo $content ?></textarea>
    202         <span id="newcontent-description" class="screen-reader-text"><?php _e('Content of the edited file. The Tab key enters a tab character, to move below this area, press the Esc key followed by the Tab key. Shift + Tab works as expected.'); ?></span>
     202        <div><textarea 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 ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.