Make WordPress Core


Ignore:
Timestamp:
09/18/2012 06:45:44 PM (13 years ago)
Author:
nacin
Message:

Replace QuickPress labels with gray prompt texts. Stylish, but also done for localization purposes (string lengths). props ocean90. fixes #21754.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r21838 r21894  
    504504
    505505    <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press">
    506         <h4 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h4>
    507         <div class="input-text-wrap">
     506        <div class="input-text-wrap" id="title-wrap">
     507            <label class="screen-reader-text prompt" for="title" id="title-prompt-text"><?php _e( 'Enter title here' ); ?></label>
    508508            <input type="text" name="post_title" id="title" autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" />
    509509        </div>
     
    515515        <?php endif; ?>
    516516
    517         <h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4>
    518517        <div class="textarea-wrap">
     518            <label class="screen-reader-text" for="content"><?php _e( 'Content' ); ?></label>
    519519            <textarea name="content" id="content" class="mceEditor" rows="3" cols="15"><?php echo esc_textarea( $post->post_content ); ?></textarea>
    520520        </div>
     
    522522        <script type="text/javascript">edCanvas = document.getElementById('content');edInsertContent = null;</script>
    523523
    524         <h4><label for="tags-input"><?php _e('Tags') ?></label></h4>
    525         <div class="input-text-wrap">
     524        <div class="input-text-wrap" id="tags-input-wrap">
     525            <label class="screen-reader-text prompt" for="tags-input" id="tags-input-prompt-text"><?php _e( 'Tags (separate with commas)' ); ?></label>
    526526            <input type="text" name="tags_input" id="tags-input" value="<?php echo get_tags_to_edit( $post->ID ); ?>" />
    527527        </div>
Note: See TracChangeset for help on using the changeset viewer.