Ticket #21458: 21458.2.patch
File 21458.2.patch, 2.1 KB (added by , 13 years ago) |
---|
-
wp-admin/css/wp-admin.dev.css
2827 2827 } 2828 2828 2829 2829 #wp-fullscreen-title-prompt-text { 2830 left: 0;2831 2830 padding: 11px; 2832 2831 } 2833 2832 -
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 screen-reader-text" 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.removeClass('screen-reader-text'); 645 645 646 646 titleprompt.click(function(){ 647 $(this). css('visibility', 'hidden');647 $(this).addClass('screen-reader-text'); 648 648 title.focus(); 649 649 }); 650 650 651 651 title.blur(function(){ 652 652 if ( this.value == '' ) 653 titleprompt. css('visibility', '');653 titleprompt.removeClass('screen-reader-text'); 654 654 }).focus(function(){ 655 titleprompt. css('visibility', 'hidden');655 titleprompt.addClass('screen-reader-text'); 656 656 }).keydown(function(e){ 657 titleprompt. css('visibility', 'hidden');657 titleprompt.addClass('screen-reader-text'); 658 658 $(this).unbind(e); 659 659 }); 660 660 }