Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2019 01:38:37 PM (4 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/settings.php

    r6967 r7006  
    969969    if ( ! empty( $theme_options ) ) : ?>
    970970
    971         <select name="_bbp_theme_package_id" id="_bbp_theme_package_id" <?php bbp_maybe_admin_setting_disabled( '_bbp_theme_package_id' ); ?>><?php echo $theme_options ?></select>
     971        <select name="_bbp_theme_package_id" id="_bbp_theme_package_id" <?php bbp_maybe_admin_setting_disabled( '_bbp_theme_package_id' ); ?>><?php echo $theme_options; ?></select>
    972972        <label for="_bbp_theme_package_id"><?php esc_html_e( 'will serve all bbPress templates', 'bbpress' ); ?></label>
    973973
     
    14651465        // Button & text
    14661466        $button = '<a href="' . esc_url( $new_url ) . '">' . esc_html__( 'create a new one', 'bbpress' ) . '</a>';
    1467         $text   = esc_html__( 'Use %s to contain your group forums, or %s', 'bbpress' );
     1467        $text   = esc_html__( 'Use %s to contain your group forums, or %s', 'bbpress' ); //phpcs:ignore
    14681468    } else {
    14691469        $text = esc_html__( 'Use %s to contain your group forums', 'bbpress' );
     
    15181518
    15191519    <div class="wrap">
    1520         <h1 class="wp-heading-inline"><?php esc_html_e( 'Forums Settings', 'bbpress' ) ?></h1>
     1520        <h1 class="wp-heading-inline"><?php esc_html_e( 'Forums Settings', 'bbpress' ); ?></h1>
    15211521        <hr class="wp-header-end">
    15221522
     
    15681568    } ?>
    15691569
    1570     <select name="_bbp_converter_platform" id="_bbp_converter_platform"><?php echo $options ?></select>
     1570    <select name="_bbp_converter_platform" id="_bbp_converter_platform"><?php echo $options; ?></select>
    15711571    <p class="description"><?php esc_html_e( 'The previous forum software', 'bbpress' ); ?></p>
    15721572
     
    17931793    // Starting or continuing?
    17941794    $progress_text = ! empty( $step )
    1795         ? sprintf( esc_html__( 'Previously stopped at step %d of %d', 'bbpress' ), $step, $max )
     1795        ? sprintf( esc_html__( 'Previously stopped at step %1$d of %2$d', 'bbpress' ), $step, $max )
    17961796        : esc_html__( 'Ready to go.', 'bbpress' ); ?>
    17971797
     
    19581958 * @param bool $slug
    19591959 */
    1960 function bbp_form_option( $option, $default = '' , $slug = false ) {
     1960function bbp_form_option( $option, $default = '', $slug = false ) {
    19611961    echo bbp_get_form_option( $option, $default, $slug );
    19621962}
Note: See TracChangeset for help on using the changeset viewer.