Make WordPress Core

Ticket #33757: 33757.3.patch

File 33757.3.patch, 5.5 KB (added by afercia, 9 years ago)
  • src/wp-admin/css/edit.css

     
    2424}
    2525
    2626#save-action .spinner,
    27 #show-comments a,
    28 #show-comments .spinner {
     27#show-comments a {
    2928        float: left;
    3029}
    3130
     31#show-comments .spinner {
     32        float: none;
     33        margin-top: 0;
     34}
     35
    3236#lost-connection-notice .spinner {
    3337        visibility: visible;
    3438        float: left;
     
    246250#normal-sortables .postbox #replyrow .submit {
    247251        float: none;
    248252        margin: 0;
    249         padding: 0 7px 5px;
     253        padding: 5px 7px 10px;
     254        overflow: hidden;
    250255}
    251256
    252257#side-sortables .submitbox .submit input,
  • src/wp-admin/css/list-tables.css

     
    152152
    153153#replysubmit {
    154154        margin: 0;
    155         padding: 0 5px 3px;
     155        padding: 5px 7px 10px;
     156        overflow: hidden;
    156157        text-align: center;
    157158}
    158159
     
    166167        text-align: center;
    167168}
    168169
    169 #replyrow h5 {
    170         margin: .2em 0 0;
    171         padding: 0 5px;
    172         line-height: 1.4em;
    173         font-size: 1em;
     170#replyrow.inline-edit-row fieldset.comment-reply {
     171        font-size: inherit;
     172        line-height: inherit;
    174173}
    175174
     175#replyrow legend {
     176        margin: 0;
     177        padding: .2em 5px 0;
     178        font-size: 13px;
     179        line-height: 1.4;
     180        font-weight: 600;
     181}
     182
     183#replyrow.inline-edit-row label {
     184        display: inline;
     185        vertical-align: baseline;
     186        line-height: inherit;
     187}
     188
    176189#edithead .inside,
    177190#commentsdiv #edithead .inside {
    178191        float: left;
     
    433446}
    434447
    435448#commentsdiv #edithead .inside input {
    436         vertical-align: middle;
    437449        width: 160px;
    438450}
    439451
  • src/wp-admin/includes/template-functions.php

     
    380380<?php else : ?>
    381381<div id="com-reply" style="display:none;"><div id="replyrow" style="display:none;">
    382382<?php endif; ?>
    383         <div id="replyhead" style="display:none;"><h5><?php _e( 'Reply to Comment' ); ?></h5></div>
    384         <div id="addhead" style="display:none;"><h5><?php _e('Add new Comment'); ?></h5></div>
     383        <fieldset class="comment-reply">
     384        <legend>
     385                <span class="hidden" id="editlegend"><?php _e( 'Edit Comment' ); ?></span>
     386                <span class="hidden" id="replyhead"><?php _e( 'Reply to Comment' ); ?></span>
     387                <span class="hidden" id="addhead"><?php _e( 'Add new Comment' ); ?></span>
     388        </legend>
     389
     390        <div id="replycontainer">
     391        <label for="replycontent" class="screen-reader-text"><?php _e( 'Comment' ); ?></label>
     392        <?php
     393        $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );
     394        wp_editor( '', 'replycontent', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) );
     395        ?>
     396        </div>
     397
    385398        <div id="edithead" style="display:none;">
    386399                <div class="inside">
    387400                <label for="author-name"><?php _e( 'Name' ) ?></label>
     
    397410                <label for="author-url"><?php _e('URL') ?></label>
    398411                <input type="text" id="author-url" name="newcomment_author_url" class="code" size="103" value="" />
    399412                </div>
    400                 <div style="clear:both;"></div>
    401413        </div>
    402414
    403         <div id="replycontainer">
    404         <?php
    405         $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );
    406         wp_editor( '', 'replycontent', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) );
    407         ?>
    408         </div>
    409 
    410415        <p id="replysubmit" class="submit">
    411416        <a href="#comments-form" class="save button-primary alignright">
    412417        <span id="addbtn" style="display:none;"><?php _e('Add Comment'); ?></span>
     
    415420        <a href="#comments-form" class="cancel button-secondary alignleft"><?php _e('Cancel'); ?></a>
    416421        <span class="waiting spinner"></span>
    417422        <span class="error" style="display:none;"></span>
    418         <br class="clear" />
    419423        </p>
    420424
    421425        <input type="hidden" name="action" id="action" value="" />
     
    430434                if ( current_user_can( 'unfiltered_html' ) )
    431435                        wp_nonce_field( 'unfiltered-html-comment', '_wp_unfiltered_html_comment', false );
    432436        ?>
     437        </fieldset>
    433438<?php if ( $table_row ) : ?>
    434439</td></tr></tbody></table>
    435440<?php else : ?>
  • src/wp-admin/js/edit-comments.js

     
    676676                        $('#author-url', editRow).val( $('div.author-url', rowData).text() );
    677677                        $('#status', editRow).val( $('div.comment_status', rowData).text() );
    678678                        $('#replycontent', editRow).val( $('textarea.comment', rowData).val() );
    679                         $('#edithead, #savebtn', editRow).show();
     679                        $( '#edithead, #editlegend, #savebtn', editRow ).show();
    680680                        $('#replyhead, #replybtn, #addhead, #addbtn', editRow).hide();
    681681
    682682                        if ( h > 120 ) {
     
    691691                        });
    692692                } else if ( action == 'add' ) {
    693693                        $('#addhead, #addbtn', editRow).show();
    694                         $('#replyhead, #replybtn, #edithead, #savebtn', editRow).hide();
     694                        $( '#replyhead, #replybtn, #edithead, #editlegend, #savebtn', editRow ) .hide();
    695695                        $('#the-comment-list').prepend(editRow);
    696696                        $('#replyrow').fadeIn(300);
    697697                } else {
    698698                        replyButton = $('#replybtn', editRow);
    699                         $('#edithead, #savebtn, #addhead, #addbtn', editRow).hide();
     699                        $( '#edithead, #editlegend, #savebtn, #addhead, #addbtn', editRow ).hide();
    700700                        $('#replyhead, #replybtn', editRow).show();
    701701                        c.after(editRow);
    702702