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/templates/default/bbpress/form-user-edit.php

    r6806 r7006  
    1515<form id="bbp-your-profile" method="post" enctype="multipart/form-data">
    1616
    17     <h2 class="entry-title"><?php esc_html_e( 'Name', 'bbpress' ) ?></h2>
     17    <h2 class="entry-title"><?php esc_html_e( 'Name', 'bbpress' ); ?></h2>
    1818
    1919    <?php do_action( 'bbp_user_edit_before' ); ?>
    2020
    2121    <fieldset class="bbp-form">
    22         <legend><?php esc_html_e( 'Name', 'bbpress' ) ?></legend>
     22        <legend><?php esc_html_e( 'Name', 'bbpress' ); ?></legend>
    2323
    2424        <?php do_action( 'bbp_user_edit_before_name' ); ?>
    2525
    2626        <div>
    27             <label for="first_name"><?php esc_html_e( 'First Name', 'bbpress' ) ?></label>
     27            <label for="first_name"><?php esc_html_e( 'First Name', 'bbpress' ); ?></label>
    2828            <input type="text" name="first_name" id="first_name" value="<?php bbp_displayed_user_field( 'first_name', 'edit' ); ?>" class="regular-text" />
    2929        </div>
    3030
    3131        <div>
    32             <label for="last_name"><?php esc_html_e( 'Last Name', 'bbpress' ) ?></label>
     32            <label for="last_name"><?php esc_html_e( 'Last Name', 'bbpress' ); ?></label>
    3333            <input type="text" name="last_name" id="last_name" value="<?php bbp_displayed_user_field( 'last_name', 'edit' ); ?>" class="regular-text" />
    3434        </div>
     
    4040
    4141        <div>
    42             <label for="display_name"><?php esc_html_e( 'Display Name', 'bbpress' ) ?></label>
     42            <label for="display_name"><?php esc_html_e( 'Display Name', 'bbpress' ); ?></label>
    4343
    4444            <?php bbp_edit_user_display_name(); ?>
     
    5050    </fieldset>
    5151
    52     <h2 class="entry-title"><?php esc_html_e( 'Contact Info', 'bbpress' ) ?></h2>
     52    <h2 class="entry-title"><?php esc_html_e( 'Contact Info', 'bbpress' ); ?></h2>
    5353
    5454    <fieldset class="bbp-form">
    55         <legend><?php esc_html_e( 'Contact Info', 'bbpress' ) ?></legend>
     55        <legend><?php esc_html_e( 'Contact Info', 'bbpress' ); ?></legend>
    5656
    5757        <?php do_action( 'bbp_user_edit_before_contact' ); ?>
    5858
    5959        <div>
    60             <label for="url"><?php esc_html_e( 'Website', 'bbpress' ) ?></label>
     60            <label for="url"><?php esc_html_e( 'Website', 'bbpress' ); ?></label>
    6161            <input type="text" name="url" id="url" value="<?php bbp_displayed_user_field( 'user_url', 'edit' ); ?>" maxlength="200" class="regular-text code" />
    6262        </div>
     
    9797    </fieldset>
    9898
    99     <h2 class="entry-title"><?php esc_html_e( 'Account', 'bbpress' ) ?></h2>
     99    <h2 class="entry-title"><?php esc_html_e( 'Account', 'bbpress' ); ?></h2>
    100100
    101101    <fieldset class="bbp-form">
    102         <legend><?php esc_html_e( 'Account', 'bbpress' ) ?></legend>
     102        <legend><?php esc_html_e( 'Account', 'bbpress' ); ?></legend>
    103103
    104104        <?php do_action( 'bbp_user_edit_before_account' ); ?>
     
    117117
    118118        <div>
    119             <label for="url"><?php esc_html_e( 'Language', 'bbpress' ) ?></label>
     119            <label for="url"><?php esc_html_e( 'Language', 'bbpress' ); ?></label>
    120120
    121121            <?php bbp_edit_user_language(); ?>
     
    129129    <?php if ( ! bbp_is_user_home_edit() && current_user_can( 'promote_user', bbp_get_displayed_user_id() ) ) : ?>
    130130
    131         <h2 class="entry-title"><?php esc_html_e( 'User Role', 'bbpress' ) ?></h2>
     131        <h2 class="entry-title"><?php esc_html_e( 'User Role', 'bbpress' ); ?></h2>
    132132
    133133        <fieldset class="bbp-form">
Note: See TracChangeset for help on using the changeset viewer.