Make WordPress Core

Changeset 51178


Ignore:
Timestamp:
06/17/2021 02:48:42 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Bring some consistency to HTML formatting in wp-admin/comment.php.

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/comment.php

    r51177 r51178  
    168168<table class="form-table comment-ays">
    169169<tr>
    170 <th scope="row"><?php _e( 'Author' ); ?></th>
    171 <td><?php comment_author( $comment ); ?></td>
     170        <th scope="row"><?php _e( 'Author' ); ?></th>
     171        <td><?php comment_author( $comment ); ?></td>
    172172</tr>
    173173                <?php if ( get_comment_author_email( $comment ) ) { ?>
    174174<tr>
    175 <th scope="row"><?php _e( 'Email' ); ?></th>
    176 <td><?php comment_author_email( $comment ); ?></td>
     175        <th scope="row"><?php _e( 'Email' ); ?></th>
     176        <td><?php comment_author_email( $comment ); ?></td>
    177177</tr>
    178178<?php } ?>
    179179                <?php if ( get_comment_author_url( $comment ) ) { ?>
    180180<tr>
    181 <th scope="row"><?php _e( 'URL' ); ?></th>
    182 <td><a href="<?php comment_author_url( $comment ); ?>"><?php comment_author_url( $comment ); ?></a></td>
     181        <th scope="row"><?php _e( 'URL' ); ?></th>
     182        <td><a href="<?php comment_author_url( $comment ); ?>"><?php comment_author_url( $comment ); ?></a></td>
    183183</tr>
    184184<?php } ?>
     
    208208                ?>
    209209        </td>
    210         </tr>
    211         <tr>
     210</tr>
     211<tr>
    212212        <th scope="row"><?php _e( 'Submitted on' ); ?></th>
    213213        <td>
     
    227227                }
    228228                ?>
    229                 </td>
    230         </tr>
    231         <tr>
     229        </td>
     230</tr>
     231<tr>
    232232        <th scope="row"><?php /* translators: Field name in comment form. */ _ex( 'Comment', 'noun' ); ?></th>
    233233        <td class="comment-content">
    234234                <?php comment_text( $comment ); ?>
    235         <p class="edit-comment"><a href="<?php echo esc_url( admin_url( "comment.php?action=editcomment&c={$comment->comment_ID}" ) ); ?>"><?php esc_html_e( 'Edit' ); ?></a></p>
     235                <p class="edit-comment">
     236                        <a href="<?php echo esc_url( admin_url( "comment.php?action=editcomment&c={$comment->comment_ID}" ) ); ?>"><?php esc_html_e( 'Edit' ); ?></a>
     237                </p>
    236238        </td>
    237         </tr>
    238         </table>
    239 
    240         <form action="comment.php" method="get" class="comment-ays-submit">
    241 
     239</tr>
     240</table>
     241
     242<form action="comment.php" method="get" class="comment-ays-submit">
    242243        <p>
    243244                <?php submit_button( $button, 'primary', 'submit', false ); ?>
    244         <a href="<?php echo esc_url( admin_url( 'edit-comments.php' ) ); ?>" class="button-cancel"><?php esc_html_e( 'Cancel' ); ?></a>
     245                <a href="<?php echo esc_url( admin_url( 'edit-comments.php' ) ); ?>" class="button-cancel"><?php esc_html_e( 'Cancel' ); ?></a>
    245246        </p>
    246247
     
    249250        <input type="hidden" name="c" value="<?php echo esc_attr( $comment->comment_ID ); ?>" />
    250251        <input type="hidden" name="noredir" value="1" />
    251         </form>
    252 
    253         </div>
     252</form>
     253
     254</div>
    254255                <?php
    255256                break;
Note: See TracChangeset for help on using the changeset viewer.