Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/16/2025 10:43:01 PM (10 months ago)
Author:
johnjamesjacoby
Message:

Tools - Code Improvement: Updates to the phpcs.xml.dist config file.

This commit implements the WordPress.WP.I18n.MissingTranslatorsComment code sniff, fixes a bunch of whitespace regressions from #3614 and #3613.

Props johnjamesjacoby, sirlouen.

In trunk, for 2.7.

Fixes #3615.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/user-details.php

    r7006 r7360  
    2727                <ul>
    2828                        <li class="<?php if ( bbp_is_single_user_profile() ) : ?>current<?php endif; ?>">
    29                                 <span class="vcard bbp-user-profile-link">
    30                                         <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php esc_html_e( 'Profile', 'bbpress' ); ?></a>
     29                                <span class="vcard bbp-user-profile-link">                                     
     30                                        <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="
     31                                                <?php
     32                                                printf(
     33                                                        /* translators: %s: User's display name */
     34                                                        esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' )
     35                                                );
     36                                                ?>" rel="me">
     37                                                <?php esc_html_e( 'Profile', 'bbpress' ); ?>
     38                                        </a>
    3139                                </span>
    3240                        </li>
     
    3442                        <li class="<?php if ( bbp_is_single_user_topics() ) : ?>current<?php endif; ?>">
    3543                                <span class='bbp-user-topics-created-link'>
    36                                         <a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Topics Started", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Topics Started', 'bbpress' ); ?></a>
     44                                        <a href="<?php bbp_user_topics_created_url(); ?>" title="
     45                                                <?php
     46                                                printf(
     47                                                        /* translators: %s: User's display name */
     48                                                        esc_attr__( "%s's Topics Started", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' )
     49                                                );
     50                                                ?>">
     51                                                <?php esc_html_e( 'Topics Started', 'bbpress' ); ?>
     52                                        </a>
    3753                                </span>
    3854                        </li>
     
    4056                        <li class="<?php if ( bbp_is_single_user_replies() ) : ?>current<?php endif; ?>">
    4157                                <span class='bbp-user-replies-created-link'>
    42                                         <a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Replies Created", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Replies Created', 'bbpress' ); ?></a>
     58                                        <a href="<?php bbp_user_replies_created_url(); ?>" title="
     59                                                <?php
     60                                                printf(
     61                                                        /* translators: %s: User's display name */
     62                                                        esc_attr__( "%s's Replies Created", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' )
     63                                                );
     64                                                ?>">
     65                                                <?php esc_html_e( 'Replies Created', 'bbpress' ); ?>
     66                                        </a>
    4367                                </span>
    4468                        </li>
     
    4771                                <li class="<?php if ( bbp_is_single_user_engagements() ) : ?>current<?php endif; ?>">
    4872                                        <span class='bbp-user-engagements-created-link'>
    49                                                 <a href="<?php bbp_user_engagements_url(); ?>" title="<?php printf( esc_attr__( "%s's Engagements", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Engagements', 'bbpress' ); ?></a>
     73                                                <a href="<?php bbp_user_engagements_url(); ?>" title="
     74                                                        <?php
     75                                                        printf(
     76                                                                /* translators: %s: User's display name */
     77                                                                esc_attr__( "%s's Engagements", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' )
     78                                                        );
     79                                                        ?>">
     80                                                        <?php esc_html_e( 'Engagements', 'bbpress' ); ?>
     81                                                </a>
    5082                                        </span>
    5183                                </li>
     
    5587                                <li class="<?php if ( bbp_is_favorites() ) : ?>current<?php endif; ?>">
    5688                                        <span class="bbp-user-favorites-link">
    57                                                 <a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Favorites", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Favorites', 'bbpress' ); ?></a>
     89                                                <a href="<?php bbp_favorites_permalink(); ?>" title="
     90                                                        <?php
     91                                                        printf(
     92                                                                /* translators: %s: User's display name */
     93                                                                esc_attr__( "%s's Favorites", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' )
     94                                                        );
     95                                                        ?>">
     96                                                        <?php esc_html_e( 'Favorites', 'bbpress' ); ?></a>
    5897                                        </span>
    5998                                </li>
     
    65104                                        <li class="<?php if ( bbp_is_subscriptions() ) : ?>current<?php endif; ?>">
    66105                                                <span class="bbp-user-subscriptions-link">
    67                                                         <a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Subscriptions", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Subscriptions', 'bbpress' ); ?></a>
     106                                                        <a href="<?php bbp_subscriptions_permalink(); ?>" title="
     107                                                                <?php
     108                                                                printf(
     109                                                                        /* translators: %s: User's display name */
     110                                                                        esc_attr__( "%s's Subscriptions", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' )
     111                                                                );
     112                                                                ?>">
     113                                                                <?php esc_html_e( 'Subscriptions', 'bbpress' ); ?>
     114                                                        </a>
    68115                                                </span>
    69116                                        </li>
     
    72119                                <li class="<?php if ( bbp_is_single_user_edit() ) : ?>current<?php endif; ?>">
    73120                                        <span class="bbp-user-edit-link">
    74                                                 <a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Edit', 'bbpress' ); ?></a>
     121                                                <a href="<?php bbp_user_profile_edit_url(); ?>" title="
     122                                                        <?php
     123                                                        printf(
     124                                                                /* translators: %s: User's display name */
     125                                                                esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) );
     126                                                        ?>">
     127                                                        <?php esc_html_e( 'Edit', 'bbpress' ); ?>
     128                                                </a>
    75129                                        </span>
    76130                                </li>
Note: See TracChangeset for help on using the changeset viewer.