WordPress.org

Make WordPress Core

Ticket #10910: t10910-allowed-tags-default-simplified.diff

File t10910-allowed-tags-default-simplified.diff, 1.5 KB (added by demetris, 4 years ago)

Simplified and more appropriate semantically markup for Allowed HTML part

  • wp-includes/comment-template.php

     
    15091509                'must_log_in'          => '<p class="must-log-in">' .  sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 
    15101510                'logged_in_as'         => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 
    15111511                'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>', 
    1512                 'comment_notes_after'  => '<dl class="form-allowed-tags"><dt>' . __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:' ) . '</dt> <dd><code>' . allowed_tags() . '</code></dd></dl>', 
     1512                'comment_notes_after'  => '<p class="form-allowed-tags">' . __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:' ) . ' ' . '<code>' . allowed_tags() . '</code></p>', 
    15131513                'id_form'              => 'commentform', 
    15141514                'id_submit'            => 'submit', 
    15151515                'title_reply'          => __( 'Leave a Reply' ),