Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2019 01:38:37 PM (5 years ago)
Author:
netweb
Message:

Build Tools: Add PHPCS with custom bbPress ruleset

  • This changeset adds an initial bbPress PHPCS ruleset
  • Future iteration of the rules in the ruleset can follow later
  • To run the PHPCS check run `grunt phpcs

Fixes #3294.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/classes/class-bbp-admin.php

    r6937 r7006  
    236236            $bbp_dashicon = '<span class="bbpress-logo-icon"></span>';
    237237            $message      = $bbp_dashicon . sprintf(
    238                 esc_html__( 'bbPress requires a manual database upgrade. %s or %s.', 'bbpress' ),
     238                esc_html__( 'bbPress requires a manual database upgrade. %1$s or %1$s.', 'bbpress' ),
    239239                $upgrade_link,
    240240                $dismiss_link
     
    325325        // Messages as objects
    326326        } elseif ( is_wp_error( $message ) ) {
    327             $errors  = $message->get_error_messages();
     327            $errors = $message->get_error_messages();
    328328
    329329            switch ( count( $errors ) ) {
     
    914914        if ( ! empty( $topics ) ) {
    915915            foreach ( (array) $topics as $post ) {
    916                 printf( esc_html__( '%s - %s', 'bbpress' ), bbp_get_topic_id( $post->ID ), bbp_get_topic_title( $post->ID ) . "\n" );
     916                printf( esc_html__( '%1$s - %2$s', 'bbpress' ), bbp_get_topic_id( $post->ID ), bbp_get_topic_title( $post->ID ) . "\n" );
    917917            }
    918918        }
     
    951951        if ( ! empty( $users_query->results ) ) {
    952952            foreach ( (array) $users_query->results as $user ) {
    953                 printf( esc_html__( '%s - %s', 'bbpress' ), bbp_get_user_id( $user->ID ), bbp_get_user_nicename( $user->ID, array( 'force' => $user->user_nicename ) ) . "\n" );
     953                printf( esc_html__( '%1$s - %2$s', 'bbpress' ), bbp_get_user_id( $user->ID ), bbp_get_user_nicename( $user->ID, array( 'force' => $user->user_nicename ) ) . "\n" );
    954954            }
    955955        }
     
    13361336                        <!--
    13371337                        function nextpage() {
    1338                             location.href = 'update-core.php?page=bbpress-update&action=bbpress-update&n=<?php echo ( $n + 5 ) ?>';
     1338                            location.href = 'update-core.php?page=bbpress-update&action=bbpress-update&n=<?php echo ( $n + 5 ); ?>';
    13391339                        }
    13401340                        setTimeout( 'nextpage()', 250 );
Note: See TracChangeset for help on using the changeset viewer.