Ticket #21458: 21458.patch
File 21458.patch, 1.9 KB (added by , 13 years ago) |
---|
-
wp-admin/css/wp-admin.dev.css
2895 2895 outline: none; 2896 2896 } 2897 2897 2898 #titlediv #title-prompt-text { 2899 visibility: hidden; 2900 } 2901 2898 2902 #titlediv #title-prompt-text, 2899 2903 #wp-fullscreen-title-prompt-text { 2900 2904 color: #bbb; -
wp-admin/edit-form-advanced.php
282 282 <?php if ( post_type_supports($post_type, 'title') ) { ?> 283 283 <div id="titlediv"> 284 284 <div id="titlewrap"> 285 <label class="hide-if-no-js" style="visibility:hidden"id="title-prompt-text" for="title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label>285 <label class="hide-if-no-js" id="title-prompt-text" for="title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label> 286 286 <input type="text" name="post_title" size="30" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" /> 287 287 </div> 288 288 <div class="inside"> -
wp-admin/js/post.dev.js
641 641 var title = $('#' + id), titleprompt = $('#' + id + '-prompt-text'); 642 642 643 643 if ( title.val() == '' ) 644 titleprompt.css('visibility', ' ');644 titleprompt.css('visibility', 'visible'); 645 645 646 646 titleprompt.click(function(){ 647 647 $(this).css('visibility', 'hidden'); … … 650 650 651 651 title.blur(function(){ 652 652 if ( this.value == '' ) 653 titleprompt.css('visibility', ' ');653 titleprompt.css('visibility', 'visible'); 654 654 }).focus(function(){ 655 655 titleprompt.css('visibility', 'hidden'); 656 656 }).keydown(function(e){