Skip to:
Content

bbPress.org

Changeset 7373


Ignore:
Timestamp:
11/18/2025 01:03:20 AM (5 weeks ago)
Author:
johnjamesjacoby
Message:

Tools - Code Improvement: stop ignoring Universal.WhiteSpace.PrecisionAlignment.Found sniff.

This change removes any precision alignment that used spaces instead of tabs.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r7371 r7373  
    476476    </rule>
    477477
    478     <rule ref="Universal.WhiteSpace.PrecisionAlignment.Found">
    479         <exclude-pattern>/src/*</exclude-pattern>
    480     </rule>
    481 
    482478    <rule ref="WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine">
    483479        <exclude-pattern>/src/*</exclude-pattern>
  • trunk/src/includes/admin/settings.php

    r7360 r7373  
    16251625function bbp_converter_setting_callback_dbserver() {
    16261626?>
    1627     <input name="_bbp_converter_db_server"
    1628            id="_bbp_converter_db_server"
    1629            type="text"
    1630            class="code"
    1631            value="<?php bbp_form_option( '_bbp_converter_db_server', 'localhost' ); ?>"
    1632            <?php bbp_maybe_admin_setting_disabled( '_bbp_converter_db_server' ); ?>
     1627    <input
     1628        name="_bbp_converter_db_server"
     1629        id="_bbp_converter_db_server"
     1630        type="text"
     1631        class="code"
     1632        value="<?php bbp_form_option( '_bbp_converter_db_server', 'localhost' ); ?>"
     1633        <?php bbp_maybe_admin_setting_disabled( '_bbp_converter_db_server' ); ?>
    16331634    />
    16341635    <p class="description">
     
    16511652function bbp_converter_setting_callback_dbport() {
    16521653    ?>
    1653     <input name="_bbp_converter_db_port"
    1654            id="_bbp_converter_db_port"
    1655            type="text"
    1656            class="code"
    1657            value="<?php bbp_form_option( '_bbp_converter_db_port', '3306' ); ?>"
    1658            <?php bbp_maybe_admin_setting_disabled( '_bbp_converter_db_port' ); ?>
     1654    <input
     1655        name="_bbp_converter_db_port"
     1656        id="_bbp_converter_db_port"
     1657        type="text"
     1658        class="code"
     1659        value="<?php bbp_form_option( '_bbp_converter_db_port', '3306' ); ?>"
     1660        <?php bbp_maybe_admin_setting_disabled( '_bbp_converter_db_port' ); ?>
    16591661    />
    16601662    <p class="description">
     
    19431945        'id'      => 'overview',
    19441946        'title'   => esc_html__( 'Overview', 'bbpress' ),
    1945         'content' => '<p>' . esc_html__( 'This screen provides access to all of the Forums settings.',                          'bbpress' ) . '</p>' .
    1946                      '<p>' . esc_html__( 'Please see the additional help tabs for more information on each individual section.', 'bbpress' ) . '</p>'
     1947        'content' =>
     1948                    '<p>' . esc_html__( 'This screen provides access to all of the Forums settings.',                          'bbpress' ) . '</p>' .
     1949                    '<p>' . esc_html__( 'Please see the additional help tabs for more information on each individual section.', 'bbpress' ) . '</p>'
    19471950    ) );
    19481951
     
    19511954        'id'      => 'main_settings',
    19521955        'title'   => esc_html__( 'Main Settings', 'bbpress' ),
    1953         'content' => '<p>' . esc_html__( 'The "Main Settings" section includes a number of options:', 'bbpress' ) . '</p>' .
    1954                      '<p>' .
     1956        'content' =>
     1957                    '<p>' . esc_html__( 'The "Main Settings" section includes a number of options:', 'bbpress' ) . '</p>' .
     1958                    '<p>' .
    19551959                        '<ul>' .
    19561960                            '<li>' . esc_html__( 'You can choose to lock a post after a certain number of minutes. "Locking post editing" will prevent the author from editing some amount of time after saving a post.',              'bbpress' ) . '</li>' .
     
    19711975        'id'      => 'theme_packages',
    19721976        'title'   => esc_html__( 'Theme Packages', 'bbpress' ),
    1973         'content' => '<p>' . esc_html__( 'The "Theme Packages" section allows you to choose which theme package should be used.', 'bbpress' ) . '</p>' .
    1974                      '<p>' .
     1977        'content' =>
     1978                    '<p>' . esc_html__( 'The "Theme Packages" section allows you to choose which theme package should be used.', 'bbpress' ) . '</p>' .
     1979                    '<p>' .
    19751980                        '<ul>' .
    19761981                            '<li>' . esc_html__( 'The "bbPress Default" package is installed by default.',      'bbpress' ) . '</li>' .
     
    19851990        'id'      => 'per_page',
    19861991        'title'   => esc_html__( 'Per Page', 'bbpress' ),
    1987         'content' => '<p>' . esc_html__( 'The "Per Page" section allows you to control the number of topics and replies appear on each page.',                                                    'bbpress' ) . '</p>' .
     1992        'content' =>
     1993                    '<p>' . esc_html__( 'The "Per Page" section allows you to control the number of topics and replies appear on each page.',                                                    'bbpress' ) . '</p>' .
    19881994                        '<ul>' .
    19891995                            '<li>' . esc_html__( 'This is comparable to the WordPress "Reading Settings" page, where you can set the number of posts that should show on blog pages and in feeds.', 'bbpress' ) . '</li>' .
    19901996                            '<li>' . esc_html__( 'These are broken up into two separate groups: one for what appears in your theme, another for RSS feeds.',                                        'bbpress' ) . '</li>' .
    19911997                        '</ul>' .
    1992                      '<p>'
     1998                    '<p>'
    19931999    ) );
    19942000
     
    19972003        'id'      => 'slugs',
    19982004        'title'   => esc_html__( 'Slugs', 'bbpress' ),
    1999         'content' => '<p>' . esc_html__( 'The "Slugs" section allows you to control the permalink structure for your forums.',                                                                                                            'bbpress' ) . '</p>' .
     2005        'content' =>
     2006                    '<p>' . esc_html__( 'The "Slugs" section allows you to control the permalink structure for your forums.',                                                                                                            'bbpress' ) . '</p>' .
    20002007                        '<ul>' .
    20012008                            '<li>' . esc_html__( '"Archive Slugs" are used as the "root" for your forums and topics. If you combine these values with existing page slugs, bbPress will attempt to output the most correct title and content.', 'bbpress' ) . '</li>' .
     
    20032010                            '<li>' . esc_html__( 'In the event of a slug collision with WordPress or BuddyPress, a warning will appear next to the problem slug(s).', 'bbpress' ) . '</li>' .
    20042011                        '</ul>' .
    2005                      '<p>'
     2012                    '<p>'
    20062013    ) );
    20072014
  • trunk/src/includes/admin/tools/help.php

    r6573 r7373  
    2929        'id'      => 'repair_forums',
    3030        'title'   => __( 'Repair Forums', 'bbpress' ),
    31         'content' => '<p>' . __( 'There is more detailed information available on the bbPress and BuddyPress codex for the following:', 'bbpress' ) . '</p>' .
    32                      '<p>' .
     31        'content' =>
     32                    '<p>' . __( 'There is more detailed information available on the bbPress and BuddyPress codex for the following:', 'bbpress' ) . '</p>' .
     33                    '<p>' .
    3334                        '<ul>' .
    3435                            '<li>' . __( 'BuddyPress Group Forums: <a href="https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/">Installing Group and Sitewide Forums</a> and <a href="https://codex.buddypress.org/getting-started/guides/migrating-from-old-forums-to-bbpress-2/">Migrating from old forums to bbPress 2.2+</a>.', 'bbpress' ) . '</li>' .
     
    9495        'id'      => 'overview',
    9596        'title'   => __( 'Overview', 'bbpress' ),
    96         'content' => '<p>' . __( 'This screen provides access to all of the bbPress Import Forums settings and resources.',                                      'bbpress' ) . '</p>' .
    97                      '<p>' . __( 'Please see the additional help tabs for more information on each individual section.',                                         'bbpress' ) . '</p>' .
    98                      '<p>' . __( 'Also see the main article on the bbPress codex <a href="https://codex.bbpress.org/import-forums/">bbPress: Import Forums</a>.', 'bbpress' ) . '</p>'
     97        'content' =>
     98                    '<p>' . __( 'This screen provides access to all of the bbPress Import Forums settings and resources.',                                      'bbpress' ) . '</p>' .
     99                    '<p>' . __( 'Please see the additional help tabs for more information on each individual section.',                                         'bbpress' ) . '</p>' .
     100                    '<p>' . __( 'Also see the main article on the bbPress codex <a href="https://codex.bbpress.org/import-forums/">bbPress: Import Forums</a>.', 'bbpress' ) . '</p>'
    99101    ) );
    100102
     
    103105        'id'      => 'database_settings',
    104106        'title'   => __( 'Database Settings', 'bbpress' ),
    105         'content' => '<p>' . __( 'In the Database Settings you have a number of options:', 'bbpress' ) . '</p>' .
    106                      '<p>' .
     107        'content' =>
     108                    '<p>' . __( 'In the Database Settings you have a number of options:', 'bbpress' ) . '</p>' .
     109                    '<p>' .
    107110                        '<ul>' .
    108111                            '<li>' . __( 'The settings in this section refer to the database connection strings used by your old forum software. The best way to determine the exact settings you need is to copy them from your legacy forums configuration file or contact your web hosting provider.', 'bbpress' ) . '</li>' .
     
    115118        'id'      => 'importer_options',
    116119        'title'   => __( 'Importer Options', 'bbpress' ),
    117         'content' => '<p>' . __( 'In the Options you have a number of options:', 'bbpress' ) . '</p>' .
    118                      '<p>' .
     120        'content' =>
     121                    '<p>' . __( 'In the Options you have a number of options:', 'bbpress' ) . '</p>' .
     122                    '<p>' .
    119123                        '<ul>' .
    120124                            '<li>' . __( 'Depending on your MySQL configuration you can tweak the "Rows Limit" and "Delay Time" that may help to improve the overall time it takes to perform a complete forum import.', 'bbpress' ) . '</li>' .
  • trunk/src/includes/common/formatting.php

    r7368 r7373  
    313313
    314314    // Bail on links that match the current domain
    315     if ( preg_match( '%href=["\'](' . preg_quote( set_url_scheme( $home_url, 'http'  ) ) . ')%i', $text ) ||
    316          preg_match( '%href=["\'](' . preg_quote( set_url_scheme( $home_url, 'https' ) ) . ')%i', $text )
     315    if (
     316        preg_match( '%href=["\'](' . preg_quote( set_url_scheme( $home_url, 'http'  ) ) . ')%i', $text )
     317        ||
     318        preg_match( '%href=["\'](' . preg_quote( set_url_scheme( $home_url, 'https' ) ) . ')%i', $text )
    317319    ) {
    318320        return "<a {$text}>";
  • trunk/src/includes/common/functions.php

    r7360 r7373  
    176176
    177177    // Is the post by an anonymous user?
    178     if ( ( bbp_get_topic_post_type() === $data['post_type'] && ! bbp_is_topic_anonymous( $postarr['ID'] ) ) ||
    179          ( bbp_get_reply_post_type() === $data['post_type'] && ! bbp_is_reply_anonymous( $postarr['ID'] ) ) ) {
     178    if (
     179        ( bbp_get_topic_post_type() === $data['post_type'] && ! bbp_is_topic_anonymous( $postarr['ID'] ) )
     180        ||
     181        ( bbp_get_reply_post_type() === $data['post_type'] && ! bbp_is_reply_anonymous( $postarr['ID'] ) )
     182    ) {
    180183        return $data;
    181184    }
  • trunk/src/includes/core/template-loader.php

    r7361 r7373  
    9393    }
    9494
    95      /**
     95    /**
    9696     * Filters the path to the template file that is being used.
    9797     *
Note: See TracChangeset for help on using the changeset viewer.