Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/16/2025 10:43:01 PM (4 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/form-reply.php

    r7268 r7360  
    2828
    2929            <fieldset class="bbp-form">
    30                 <legend><?php printf( esc_html__( 'Reply To: %s', 'bbpress' ), ( bbp_get_form_reply_to() ) ? sprintf( esc_html__( 'Reply #%1$s in %2$s', 'bbpress' ), bbp_get_form_reply_to(), bbp_get_topic_title() ) : bbp_get_topic_title() ); ?></legend>
     30            <legend>
     31                <?php
     32                if ( bbp_get_form_reply_to() ) {
     33
     34                    printf(
     35                        /* translators: %s: Reply reference (includes reply number and topic title) */
     36                        esc_html__( 'Reply To: %s', 'bbpress' ),
     37                        sprintf(
     38                            /* translators: 1: Reply number, 2: Topic title */
     39                            esc_html__( 'Reply #%1$s in %2$s', 'bbpress' ),
     40                            bbp_get_form_reply_to(),
     41                            bbp_get_topic_title()
     42                        )
     43                    );
     44                } else {
     45
     46                    printf(
     47                        /* translators: %s: Topic title */
     48                        esc_html__( 'Reply To: %s', 'bbpress' ),
     49                        bbp_get_topic_title()
     50                    );
     51                }
     52                ?>
     53            </legend>
    3154
    3255                <?php do_action( 'bbp_theme_before_reply_form_notices' ); ?>
     
    191214        <div class="bbp-template-notice">
    192215            <ul>
    193                 <li><?php printf( esc_html__( 'The topic &#8216;%s&#8217; is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></li>
     216                <li>
     217                    <?php
     218                    printf(
     219                        /* translators: %s: Topic title */
     220                        esc_html__( 'The topic &#8216;%s&#8217; is closed to new replies.', 'bbpress' ),
     221                        bbp_get_topic_title()
     222                    );
     223                    ?>
     224                </li>
    194225            </ul>
    195226        </div>
     
    201232        <div class="bbp-template-notice">
    202233            <ul>
    203                 <li><?php printf( esc_html__( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></li>
     234                <li>
     235                    <?php
     236                    printf(
     237                        /* translators: %s: Forum title */
     238                        esc_html__( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ),
     239                        bbp_get_forum_title( bbp_get_topic_forum_id() )
     240                    );
     241                    ?>
     242                </li>
    204243            </ul>
    205244        </div>
Note: See TracChangeset for help on using the changeset viewer.