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/includes/admin/metaboxes.php

    r7357 r7360  
    4141    if ( isset( $r['user_count'] ) ) {
    4242        $link       = admin_url( 'users.php' );
     43        /* translators: %s: Number of users */
    4344        $text       = sprintf( _n( '%s User', '%s Users', $r['user_count_int'], 'bbpress' ), $r['user_count'] );
    4445        $elements[] = current_user_can( 'edit_users' )
     
    5051    if ( isset( $r['forum_count'] ) ) {
    5152        $link       = add_query_arg( array( 'post_type' => bbp_get_forum_post_type() ), admin_url( 'edit.php' ) );
     53        /* translators: %s: Number of forums */
    5254        $text       = sprintf( _n( '%s Forum', '%s Forums', $r['forum_count_int'], 'bbpress' ), $r['forum_count'] );
    5355        $elements[] = current_user_can( 'publish_forums' )
     
    5961    if ( isset( $r['topic_count'] ) ) {
    6062        $link       = add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), admin_url( 'edit.php' ) );
     63        /* translators: %s: Number of topics */
    6164        $text       = sprintf( _n( '%s Topic', '%s Topics', $r['topic_count_int'], 'bbpress' ), $r['topic_count'] );
    6265        $elements[] = current_user_can( 'publish_topics' )
     
    6871    if ( isset( $r['reply_count'] ) ) {
    6972        $link       = add_query_arg( array( 'post_type' => bbp_get_reply_post_type() ), admin_url( 'edit.php' ) );
     73        /* translators: %s: Number of replies */
    7074        $text       = sprintf( _n( '%s Reply', '%s Replies', $r['reply_count_int'], 'bbpress' ), $r['reply_count'] );
    7175        $elements[] = current_user_can( 'publish_replies' )
     
    7781    if ( bbp_allow_topic_tags() && isset( $r['topic_tag_count'] ) ) {
    7882        $link       = add_query_arg( array( 'taxonomy' => bbp_get_topic_tag_tax_id(), 'post_type' => bbp_get_topic_post_type() ), admin_url( 'edit-tags.php' ) );
     83        /* translators: %s: Number of topic tags */
    7984        $text       = sprintf( _n( '%s Topic Tag', '%s Topic Tags', $r['topic_tag_count_int'], 'bbpress' ), $r['topic_tag_count'] );
    8085        $elements[] = current_user_can( 'manage_topic_tags' )
     
    283288
    284289        <span id="wp-version-message">
    285             <?php printf( __( 'You are using <span class="b">bbPress %s</span>.', 'bbpress' ), bbp_get_version() ); ?>
     290            <?php
     291            printf(
     292                /* translators: %s: bbPress version */
     293                __( 'You are using <span class="b">bbPress %s</span>.', 'bbpress' ), bbp_get_version()
     294            );
     295            ?>
    286296        </span>
    287297
Note: See TracChangeset for help on using the changeset viewer.