Replace QuickPress labels with gray prompt texts. Stylish, but also done for localization purposes (string lengths). props ocean90. fixes #21754.
git-svn-id: http://core.svn.wordpress.org/trunk@21894 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -503,8 +503,8 @@ function wp_dashboard_quick_press() {
|
||||
?>
|
||||
|
||||
<form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press">
|
||||
<h4 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h4>
|
||||
<div class="input-text-wrap">
|
||||
<div class="input-text-wrap" id="title-wrap">
|
||||
<label class="screen-reader-text prompt" for="title" id="title-prompt-text"><?php _e( 'Enter title here' ); ?></label>
|
||||
<input type="text" name="post_title" id="title" autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" />
|
||||
</div>
|
||||
|
||||
@@ -514,15 +514,15 @@ function wp_dashboard_quick_press() {
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4>
|
||||
<div class="textarea-wrap">
|
||||
<label class="screen-reader-text" for="content"><?php _e( 'Content' ); ?></label>
|
||||
<textarea name="content" id="content" class="mceEditor" rows="3" cols="15"><?php echo esc_textarea( $post->post_content ); ?></textarea>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">edCanvas = document.getElementById('content');edInsertContent = null;</script>
|
||||
|
||||
<h4><label for="tags-input"><?php _e('Tags') ?></label></h4>
|
||||
<div class="input-text-wrap">
|
||||
<div class="input-text-wrap" id="tags-input-wrap">
|
||||
<label class="screen-reader-text prompt" for="tags-input" id="tags-input-prompt-text"><?php _e( 'Tags (separate with commas)' ); ?></label>
|
||||
<input type="text" name="tags_input" id="tags-input" value="<?php echo get_tags_to_edit( $post->ID ); ?>" />
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user