Make WordPress Core


Ignore:
Timestamp:
11/26/2017 11:56:25 PM (7 years ago)
Author:
pento
Message:

General: Fix some precision alignment formatting warnings.

The WPCS WordPress.WhiteSpace.PrecisionAlignment rule throws warnings for a bunch of code that will likely cause issues for wpcbf. Fixing these manually beforehand gives us better auto-fixed results later.

See #41057.

File:
1 edited

Legend:

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

    r41285 r42228  
    22202220        /** This filter is documented in wp-includes/link-template.php */
    22212221        'must_log_in'          => '<p class="must-log-in">' . sprintf(
    2222                                       /* translators: %s: login URL */
    2223                                       __( 'You must be <a href="%s">logged in</a> to post a comment.' ),
    2224                                       wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
    2225                                   ) . '</p>',
     2222                                    /* translators: %s: login URL */
     2223                                    __( 'You must be <a href="%s">logged in</a> to post a comment.' ),
     2224                                    wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
     2225                                ) . '</p>',
    22262226        /** This filter is documented in wp-includes/link-template.php */
    22272227        'logged_in_as'         => '<p class="logged-in-as">' . sprintf(
    2228                                       /* translators: 1: edit user link, 2: accessibility text, 3: user name, 4: logout URL */
    2229                                       __( '<a href="%1$s" aria-label="%2$s">Logged in as %3$s</a>. <a href="%4$s">Log out?</a>' ),
    2230                                       get_edit_user_link(),
    2231                                       /* translators: %s: user name */
    2232                                       esc_attr( sprintf( __( 'Logged in as %s. Edit your profile.' ), $user_identity ) ),
    2233                                       $user_identity,
    2234                                       wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
    2235                                   ) . '</p>',
     2228                                    /* translators: 1: edit user link, 2: accessibility text, 3: user name, 4: logout URL */
     2229                                    __( '<a href="%1$s" aria-label="%2$s">Logged in as %3$s</a>. <a href="%4$s">Log out?</a>' ),
     2230                                    get_edit_user_link(),
     2231                                    /* translators: %s: user name */
     2232                                    esc_attr( sprintf( __( 'Logged in as %s. Edit your profile.' ), $user_identity ) ),
     2233                                    $user_identity,
     2234                                    wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
     2235                                ) . '</p>',
    22362236        'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>'. ( $req ? $required_text : '' ) . '</p>',
    22372237        'comment_notes_after'  => '',
Note: See TracChangeset for help on using the changeset viewer.