Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2024 07:41:30 PM (2 years ago)
Author:
espellcaste
Message:

WPCS: Part II: miscellaneous fixes for some of the files of the core component.

Follow-up to 13883.

See #9164 and #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-tools.php

    r13878 r13886  
    264264 * @since 2.0.0
    265265 *
     266 * @global wpdb $wpdb WordPress database object.
     267 *
    266268 * @return array
    267269 */
     
    270272
    271273        if ( ! bp_is_active( 'friends' ) ) {
    272                 return;
     274                return array( 2, __( 'Friends component is not active.', 'buddypress' ) );
    273275        }
    274276
     
    290292        if ( $total_users > 0 ) {
    291293                $per_query = 500;
    292                 $offset = 0;
     294                $offset    = 0;
    293295                while ( $offset < $total_users ) {
    294296                        // Only bother updating counts for users who actually have friendships.
     
    323325 * @since 2.0.0
    324326 *
     327 * @global wpdb $wpdb WordPress database object.
     328 *
    325329 * @return array
    326330 */
     
    329333
    330334        if ( ! bp_is_active( 'groups' ) ) {
    331                 return;
     335                return array( 2, __( 'Groups component is not active.', 'buddypress' ) );
    332336        }
    333337
     
    348352        if ( $total_users > 0 ) {
    349353                $per_query = 500;
    350                 $offset = 0;
     354                $offset    = 0;
    351355                while ( $offset < $total_users ) {
    352356                        // But only bother to update counts for users that have groups.
     
    379383
    380384        // Default to failure text.
    381         $result    = __( 'Failed!',  'buddypress' );
     385        $result = __( 'Failed!', 'buddypress' );
    382386
    383387        // Default to unrepaired.
    384         $repair    = false;
     388        $repair = false;
    385389
    386390        // Run function if blogs component is active.
     
    412416        if ( ! is_multisite() ) {
    413417                return array( 0, sprintf( $statement, __( 'Failed!', 'buddypress' ) ) );
    414         }
     418        }
    415419
    416420        // Run function if blogs component is active.
     
    459463 *
    460464 * @since 2.0.0
     465 *
     466 * @return array
    461467 */
    462468function bp_admin_repair_count_members() {
     
    474480 * @since 6.0.0
    475481 *
     482 * @global wpdb $wpdb WordPress database object.
     483 *
    476484 * @return array
    477485 */
     
    479487        global $wpdb;
    480488
    481         require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
    482         require_once( buddypress()->plugin_dir . '/bp-core/admin/bp-core-admin-schema.php' );
     489        require_once ABSPATH . 'wp-admin/includes/upgrade.php';
     490        require_once buddypress()->plugin_dir . '/bp-core/admin/bp-core-admin-schema.php';
    483491
    484492        /* translators: %s: the result of the action performed by the repair tool */
     
    490498        // Check for existence of invitations table.
    491499        $table_name = BP_Invitation_Manager::get_table_name();
    492         $query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $table_name ) );
    493         if ( ! $wpdb->get_var( $query ) == $table_name ) {
     500        $query      = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $table_name ) );
     501        if ( ! $wpdb->get_var( $query ) === $table_name ) {
    494502                // Early return if table creation failed.
    495503                return array( 2, sprintf( $statement, $result ) );
     
    512520                if ( empty( $records ) ) {
    513521                        $migrate_result = __( 'Migrated invitations!', 'buddypress' );
    514                         return array( 0, sprintf( $statement . ' ' . $migrate_statement , $result, $migrate_result ) );
     522                        return array( 0, sprintf( $statement . ' ' . $migrate_statement, $result, $migrate_result ) );
    515523                } else {
    516                         return array( 2, sprintf( $statement . ' ' . $migrate_statement , $result, $migrate_result ) );
     524                        return array( 2, sprintf( $statement . ' ' . $migrate_statement, $result, $migrate_result ) );
    517525                }
    518526        }
     
    527535 * @since 2.0.0
    528536 *
    529  * @param string      $message Feedback message.
    530  * @param string|bool $class   Unused.
     537 * @param string      $message    Feedback message.
     538 * @param string|bool $html_class Unused. Defaults to false.
    531539 * @return false|Closure
    532540 */
    533 function bp_admin_tools_feedback( $message, $class = false ) {
     541function bp_admin_tools_feedback( $message, $html_class = false ) {
     542        $class = $html_class;
    534543        if ( is_string( $message ) ) {
    535544                $message = '<p>' . $message . '</p>';
    536                 $class = $class ? $class : 'updated';
     545                $class   = $class ? $class : 'updated';
    537546        } elseif ( is_wp_error( $message ) ) {
    538547                $errors = $message->get_error_messages();
     
    566575                                'li'  => true,
    567576                                'div' => array(
    568                                         'id' => true,
     577                                        'id'    => true,
    569578                                        'class' => true,
    570579                                ),
     
    592601        ?>
    593602        <div class="wrap">
    594                 <h1 class="wp-heading-inline"><?php esc_html_e( 'Tools', 'buddypress' ) ?></h1>
     603                <h1 class="wp-heading-inline"><?php esc_html_e( 'Tools', 'buddypress' ); ?></h1>
    595604                <hr class="wp-header-end">
    596605
     
    602611                 * @since 2.0.0
    603612                 */
    604                 do_action( 'bp_network_tool_box' ); ?>
     613                do_action( 'bp_network_tool_box' );
     614                ?>
    605615
    606616        </div>
     
    615625function bp_core_admin_available_tools_intro() {
    616626        $query_arg = array(
    617                 'page' => 'bp-tools'
     627                'page' => 'bp-tools',
    618628        );
    619629
    620         $page = bp_core_do_network_admin() ? 'admin.php' : 'tools.php' ;
     630        $page = bp_core_do_network_admin() ? 'admin.php' : 'tools.php';
    621631        $url  = add_query_arg( $query_arg, bp_get_admin_url( $page ) );
    622632        ?>
    623633        <div class="card tool-box bp-tools">
    624                 <h2><?php esc_html_e( 'BuddyPress Tools', 'buddypress' ) ?></h2>
     634                <h2><?php esc_html_e( 'BuddyPress Tools', 'buddypress' ); ?></h2>
    625635
    626636                <dl>
    627                         <dt><?php esc_html_e( 'Repair Tools', 'buddypress' ) ?></dt>
     637                        <dt><?php esc_html_e( 'Repair Tools', 'buddypress' ); ?></dt>
    628638                        <dd>
    629639                                <?php esc_html_e( 'BuddyPress keeps track of various relationships between users, groups, and activity items. Occasionally these relationships become out of sync, most often after an import, update, or migration.', 'buddypress' ); ?>
     
    637647                        </dd>
    638648
    639                         <dt><?php esc_html_e( 'Manage Invitations', 'buddypress' ) ?></dt>
     649                        <dt><?php esc_html_e( 'Manage Invitations', 'buddypress' ); ?></dt>
    640650                        <dd>
    641651                                <?php esc_html_e( 'When enabled, BuddyPress allows your users to invite nonmembers to join your site.', 'buddypress' ); ?>
     
    650660                        </dd>
    651661
    652                         <dt><?php esc_html_e( 'Manage Opt-outs', 'buddypress' ) ?></dt>
     662                        <dt><?php esc_html_e( 'Manage Opt-outs', 'buddypress' ); ?></dt>
    653663                        <dd>
    654664                                <?php esc_html_e( 'BuddyPress stores opt-out requests from people who are not members of this site, but have been contacted via communication from this site, and wish to opt-out from future communication.', 'buddypress' ); ?>
     
    685695        }
    686696
    687         $emails = get_posts( array(
    688                 'fields'           => 'ids',
    689                 'post_status'      => 'publish',
    690                 'post_type'        => bp_get_email_post_type(),
    691                 'posts_per_page'   => 200,
    692                 'suppress_filters' => false,
    693         ) );
     697        $emails = get_posts(
     698                array(
     699                        'fields'           => 'ids',
     700                        'post_status'      => 'publish',
     701                        'post_type'        => bp_get_email_post_type(),
     702                        'posts_per_page'   => 200,
     703                        'suppress_filters' => false,
     704                )
     705        );
    694706
    695707        if ( $emails ) {
     
    699711        }
    700712
     713        $email_tax_type = bp_get_email_tax_type();
     714
    701715        // Make sure we have no orphaned email type terms.
    702         $email_types = get_terms( bp_get_email_tax_type(), array(
    703                 'fields'                 => 'ids',
    704                 'hide_empty'             => false,
    705                 'update_term_meta_cache' => false,
    706         ) );
     716        $email_types = get_terms(
     717                array(
     718                        'taxonomy'               => $email_tax_type,
     719                        'fields'                 => 'ids',
     720                        'hide_empty'             => false,
     721                        'update_term_meta_cache' => false,
     722                )
     723        );
    707724
    708725        if ( $email_types ) {
    709726                foreach ( $email_types as $term_id ) {
    710                         wp_delete_term( (int) $term_id, bp_get_email_tax_type() );
    711                 }
    712         }
    713 
    714         require_once( buddypress()->plugin_dir . '/bp-core/admin/bp-core-admin-schema.php' );
     727                        wp_delete_term( (int) $term_id, $email_tax_type );
     728                }
     729        }
     730
     731        require_once buddypress()->plugin_dir . '/bp-core/admin/bp-core-admin-schema.php';
    715732        bp_core_install_emails();
    716733
     
    779796
    780797                if ( isset( $active_components[ $component_id ] ) ) {
    781                         $prefix = $active_components[ $component_id ] .': ';
     798                        $prefix = $active_components[ $component_id ] . ': ';
    782799                }
    783800
     
    865882                        $theme_settings,
    866883                        $bp_settings
    867                 )
     884                ),
    868885        );
    869886
     
    872889                'description' => __( 'These constants can alter where and how parts of BuddyPress are loaded or works.', 'buddypress' ),
    873890                'fields'      => array(
    874                         'BP_VERSION' => array(
     891                        'BP_VERSION'                            => array(
    875892                                'label' => 'BP_VERSION',
    876893                                'value' => BP_VERSION,
    877894                        ),
    878                         'BP_DB_VERSION' => array(
     895                        'BP_DB_VERSION'                         => array(
    879896                                'label' => 'BP_DB_VERSION',
    880897                                'value' => BP_DB_VERSION,
    881898                        ),
    882                         'BP_REQUIRED_PHP_VERSION' => array(
     899                        'BP_REQUIRED_PHP_VERSION'               => array(
    883900                                'label' => 'BP_REQUIRED_PHP_VERSION',
    884901                                'value' => BP_REQUIRED_PHP_VERSION,
    885902                        ),
    886                         'BP_PLUGIN_DIR' => array(
     903                        'BP_PLUGIN_DIR'                         => array(
    887904                                'label' => 'BP_PLUGIN_DIR',
    888905                                'value' => BP_PLUGIN_DIR,
    889906                        ),
    890                         'BP_PLUGIN_URL' => array(
     907                        'BP_PLUGIN_URL'                         => array(
    891908                                'label' => 'BP_PLUGIN_URL',
    892909                                'value' => BP_PLUGIN_URL,
    893910                        ),
    894                         'BP_IGNORE_DEPRECATED' => array(
     911                        'BP_IGNORE_DEPRECATED'                  => array(
    895912                                'label' => 'BP_IGNORE_DEPRECATED',
    896913                                'value' => defined( 'BP_IGNORE_DEPRECATED' ) && BP_IGNORE_DEPRECATED ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ),
    897914                                'debug' => defined( 'BP_IGNORE_DEPRECATED' ) ? BP_IGNORE_DEPRECATED : 'undefined',
    898915                        ),
    899                         'BP_LOAD_DEPRECATED' => array(
     916                        'BP_LOAD_DEPRECATED'                    => array(
    900917                                'label' => 'BP_LOAD_DEPRECATED',
    901918                                'value' => defined( 'BP_LOAD_DEPRECATED' ) && BP_LOAD_DEPRECATED ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ),
    902919                                'debug' => defined( 'BP_LOAD_DEPRECATED' ) ? BP_LOAD_DEPRECATED : 'undefined',
    903920                        ),
    904                         'BP_ROOT_BLOG' => array(
     921                        'BP_ROOT_BLOG'                          => array(
    905922                                'label' => 'BP_ROOT_BLOG',
    906923                                'value' => BP_ROOT_BLOG,
    907924                        ),
    908                         'BP_ENABLE_MULTIBLOG' => array(
     925                        'BP_ENABLE_MULTIBLOG'                   => array(
    909926                                'label' => 'BP_ENABLE_MULTIBLOG',
    910927                                'value' => defined( 'BP_ENABLE_MULTIBLOG' ) && BP_ENABLE_MULTIBLOG ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ),
    911928                                'debug' => defined( 'BP_ENABLE_MULTIBLOG' ) ? BP_ENABLE_MULTIBLOG : 'undefined',
    912929                        ),
    913                         'BP_ENABLE_ROOT_PROFILES' => array(
     930                        'BP_ENABLE_ROOT_PROFILES'               => array(
    914931                                'label' => 'BP_ENABLE_ROOT_PROFILES',
    915932                                'value' => defined( 'BP_ENABLE_ROOT_PROFILES' ) && BP_ENABLE_ROOT_PROFILES ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ),
    916933                                'debug' => defined( 'BP_ENABLE_ROOT_PROFILES' ) ? BP_ENABLE_ROOT_PROFILES : 'undefined',
    917934                        ),
    918                         'BP_DEFAULT_COMPONENT' => array(
     935                        'BP_DEFAULT_COMPONENT'                  => array(
    919936                                'label' => 'BP_DEFAULT_COMPONENT',
    920937                                'value' => defined( 'BP_DEFAULT_COMPONENT' ) ? BP_DEFAULT_COMPONENT : __( 'Undefined', 'buddypress' ),
    921938                                'debug' => defined( 'BP_DEFAULT_COMPONENT' ) ? BP_DEFAULT_COMPONENT : 'undefined',
    922939                        ),
    923                         'BP_XPROFILE_BASE_GROUP_NAME' => array(
     940                        'BP_XPROFILE_BASE_GROUP_NAME'           => array(
    924941                                'label' => 'BP_XPROFILE_BASE_GROUP_NAME',
    925942                                'value' => BP_XPROFILE_BASE_GROUP_NAME,
    926943                        ),
    927                         'BP_XPROFILE_FULLNAME_FIELD_NAME' => array(
     944                        'BP_XPROFILE_FULLNAME_FIELD_NAME'       => array(
    928945                                'label' => 'BP_XPROFILE_FULLNAME_FIELD_NAME',
    929946                                'value' => BP_XPROFILE_FULLNAME_FIELD_NAME,
    930947                        ),
    931                         'BP_MESSAGES_AUTOCOMPLETE_ALL' => array(
     948                        'BP_MESSAGES_AUTOCOMPLETE_ALL'          => array(
    932949                                'label' => 'BP_MESSAGES_AUTOCOMPLETE_ALL',
    933950                                'value' => defined( 'BP_MESSAGES_AUTOCOMPLETE_ALL' ) && BP_MESSAGES_AUTOCOMPLETE_ALL ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ),
    934951                        ),
    935                         'BP_DISABLE_AUTO_GROUP_JOIN' => array(
     952                        'BP_DISABLE_AUTO_GROUP_JOIN'            => array(
    936953                                'label' => 'BP_DISABLE_AUTO_GROUP_JOIN',
    937954                                'value' => defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) && BP_DISABLE_AUTO_GROUP_JOIN ? __( 'Disabled', 'buddypress' ) : __( 'Enabled', 'buddypress' ),
    938955                                'debug' => defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) ? BP_DISABLE_AUTO_GROUP_JOIN : 'undefined',
    939956                        ),
    940                         'BP_GROUPS_DEFAULT_EXTENSION' => array(
     957                        'BP_GROUPS_DEFAULT_EXTENSION'           => array(
    941958                                'label' => 'BP_GROUPS_DEFAULT_EXTENSION',
    942959                                'value' => defined( 'BP_GROUPS_DEFAULT_EXTENSION' ) ? BP_GROUPS_DEFAULT_EXTENSION : __( 'Undefined', 'buddypress' ),
    943960                                'debug' => defined( 'BP_GROUPS_DEFAULT_EXTENSION' ) ? BP_GROUPS_DEFAULT_EXTENSION : 'undefined',
    944961                        ),
    945                         'BP_SIGNUPS_SKIP_USER_CREATION' => array(
     962                        'BP_SIGNUPS_SKIP_USER_CREATION'         => array(
    946963                                'label' => 'BP_SIGNUPS_SKIP_USER_CREATION (deprecated)',
    947964                                'value' => defined( 'BP_SIGNUPS_SKIP_USER_CREATION' ) && BP_SIGNUPS_SKIP_USER_CREATION ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ),
     
    953970                                'debug' => defined( 'BP_MEMBERS_REQUIRED_PASSWORD_STRENGTH' ) ? BP_MEMBERS_REQUIRED_PASSWORD_STRENGTH : 'undefined',
    954971                        ),
    955                         'BP_EMBED_DISABLE_PRIVATE_MESSAGES' => array(
     972                        'BP_EMBED_DISABLE_PRIVATE_MESSAGES'     => array(
    956973                                'label' => 'BP_EMBED_DISABLE_PRIVATE_MESSAGES',
    957974                                'value' => defined( 'BP_EMBED_DISABLE_PRIVATE_MESSAGES' ) ? BP_EMBED_DISABLE_PRIVATE_MESSAGES : __( 'Undefined', 'buddypress' ),
    958975                                'debug' => defined( 'BP_EMBED_DISABLE_PRIVATE_MESSAGES' ) ? BP_EMBED_DISABLE_PRIVATE_MESSAGES : 'undefined',
    959976                        ),
    960                         'BP_EMBED_DISABLE_ACTIVITY_REPLIES' => array(
     977                        'BP_EMBED_DISABLE_ACTIVITY_REPLIES'     => array(
    961978                                'label' => 'BP_EMBED_DISABLE_ACTIVITY_REPLIES',
    962979                                'value' => defined( 'BP_EMBED_DISABLE_ACTIVITY_REPLIES' ) ? BP_EMBED_DISABLE_ACTIVITY_REPLIES : __( 'Undefined', 'buddypress' ),
     
    968985                                'debug' => defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) ? BP_ENABLE_USERNAME_COMPATIBILITY_MODE : 'undefined',
    969986                        ),
    970                         'BP_AVATAR_DEFAULT_THUMB' => array(
     987                        'BP_AVATAR_DEFAULT_THUMB'               => array(
    971988                                'label' => 'BP_AVATAR_DEFAULT_THUMB',
    972989                                'value' => defined( 'BP_AVATAR_DEFAULT_THUMB' ) ? BP_AVATAR_DEFAULT_THUMB : __( 'Undefined', 'buddypress' ),
    973990                                'debug' => defined( 'BP_AVATAR_DEFAULT_THUMB' ) ? BP_AVATAR_DEFAULT_THUMB : 'undefined',
    974991                        ),
    975                         'BP_AVATAR_DEFAULT' => array(
     992                        'BP_AVATAR_DEFAULT'                     => array(
    976993                                'label' => 'BP_AVATAR_DEFAULT',
    977994                                'value' => defined( 'BP_AVATAR_DEFAULT' ) ? BP_AVATAR_DEFAULT : __( 'Undefined', 'buddypress' ),
    978995                                'debug' => defined( 'BP_AVATAR_DEFAULT' ) ? BP_AVATAR_DEFAULT : 'undefined',
    979996                        ),
    980                         'BP_AVATAR_URL' => array(
     997                        'BP_AVATAR_URL'                         => array(
    981998                                'label' => 'BP_AVATAR_URL',
    982999                                'value' => defined( 'BP_AVATAR_URL' ) ? BP_AVATAR_URL : __( 'Undefined', 'buddypress' ),
    9831000                                'debug' => defined( 'BP_AVATAR_URL' ) ? BP_AVATAR_URL : 'undefined',
    9841001                        ),
    985                         'BP_AVATAR_UPLOAD_PATH' => array(
     1002                        'BP_AVATAR_UPLOAD_PATH'                 => array(
    9861003                                'label' => 'BP_AVATAR_UPLOAD_PATH',
    9871004                                'value' => defined( 'BP_AVATAR_UPLOAD_PATH' ) ? BP_AVATAR_UPLOAD_PATH : __( 'Undefined', 'buddypress' ),
    9881005                                'debug' => defined( 'BP_AVATAR_UPLOAD_PATH' ) ? BP_AVATAR_UPLOAD_PATH : 'undefined',
    9891006                        ),
    990                         'BP_SHOW_AVATARS' => array(
     1007                        'BP_SHOW_AVATARS'                       => array(
    9911008                                'label' => 'BP_SHOW_AVATARS',
    9921009                                'value' => defined( 'BP_SHOW_AVATARS' ) && BP_SHOW_AVATARS ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ),
    9931010                                'debug' => defined( 'BP_SHOW_AVATARS' ) ? BP_SHOW_AVATARS : 'undefined',
    9941011                        ),
    995                         'BP_AVATAR_ORIGINAL_MAX_FILESIZE' => array(
    996                                 'label' => 'BP_AVATAR_ORIGINAL_MAX_FILESIZE',
    997                                 'value' => BP_AVATAR_ORIGINAL_MAX_FILESIZE,
    998                         ),
    999                         'BP_AVATAR_ORIGINAL_MAX_WIDTH' => array(
     1012                        'BP_AVATAR_ORIGINAL_MAX_WIDTH'          => array(
    10001013                                'label' => 'BP_AVATAR_ORIGINAL_MAX_WIDTH',
    10011014                                'value' => BP_AVATAR_ORIGINAL_MAX_WIDTH,
    10021015                        ),
    1003                         'BP_AVATAR_ORIGINAL_MAX_FILESIZE' => array(
     1016                        'BP_AVATAR_ORIGINAL_MAX_FILESIZE'       => array(
    10041017                                'label' => 'BP_AVATAR_ORIGINAL_MAX_FILESIZE',
    10051018                                'value' => size_format( BP_AVATAR_ORIGINAL_MAX_FILESIZE ),
    10061019                                'debug' => BP_AVATAR_ORIGINAL_MAX_FILESIZE,
    10071020                        ),
    1008                         'BP_AVATAR_FULL_HEIGHT' => array(
     1021                        'BP_AVATAR_FULL_HEIGHT'                 => array(
    10091022                                'label' => 'BP_AVATAR_FULL_HEIGHT',
    10101023                                'value' => BP_AVATAR_FULL_HEIGHT,
    10111024                        ),
    1012                         'BP_AVATAR_FULL_WIDTH' => array(
     1025                        'BP_AVATAR_FULL_WIDTH'                  => array(
    10131026                                'label' => 'BP_AVATAR_FULL_WIDTH',
    10141027                                'value' => BP_AVATAR_FULL_WIDTH,
    10151028                        ),
    1016                         'BP_AVATAR_THUMB_HEIGHT' => array(
     1029                        'BP_AVATAR_THUMB_HEIGHT'                => array(
    10171030                                'label' => 'BP_AVATAR_THUMB_HEIGHT',
    10181031                                'value' => BP_AVATAR_THUMB_HEIGHT,
    10191032                        ),
    1020                         'BP_AVATAR_THUMB_WIDTH' => array(
     1033                        'BP_AVATAR_THUMB_WIDTH'                 => array(
    10211034                                'label' => 'BP_AVATAR_THUMB_WIDTH',
    10221035                                'value' => BP_AVATAR_THUMB_WIDTH,
    10231036                        ),
    1024                         'BP_USE_WP_ADMIN_BAR' => array(
     1037                        'BP_USE_WP_ADMIN_BAR'                   => array(
    10251038                                'label' => 'BP_USE_WP_ADMIN_BAR (deprecated)',
    10261039                                'value' => defined( 'BP_USE_WP_ADMIN_BAR' ) ? BP_USE_WP_ADMIN_BAR : __( 'Undefined', 'buddypress' ),
    10271040                                'debug' => defined( 'BP_USE_WP_ADMIN_BAR' ) ? BP_USE_WP_ADMIN_BAR : 'undefined',
    10281041                        ),
    1029                         'BP_FRIENDS_DB_VERSION' => array(
     1042                        'BP_FRIENDS_DB_VERSION'                 => array(
    10301043                                'label' => 'BP_FRIENDS_DB_VERSION (deprecated)',
    10311044                                'value' => defined( 'BP_FRIENDS_DB_VERSION' ) ? BP_FRIENDS_DB_VERSION : __( 'Undefined', 'buddypress' ),
    10321045                                'debug' => defined( 'BP_FRIENDS_DB_VERSION' ) ? BP_FRIENDS_DB_VERSION : 'undefined',
    10331046                        ),
    1034                         'BP_FORUMS_PARENT_FORUM_ID' => array(
     1047                        'BP_FORUMS_PARENT_FORUM_ID'             => array(
    10351048                                'label' => 'BP_FORUMS_PARENT_FORUM_ID (deprecated)',
    10361049                                'value' => defined( 'BP_FORUMS_PARENT_FORUM_ID' ) ? BP_FORUMS_PARENT_FORUM_ID : __( 'Undefined', 'buddypress' ),
    10371050                                'debug' => defined( 'BP_FORUMS_PARENT_FORUM_ID' ) ? BP_FORUMS_PARENT_FORUM_ID : 'undefined',
    10381051                        ),
    1039                         'BP_MEMBERS_SLUG' => array(
     1052                        'BP_MEMBERS_SLUG'                       => array(
    10401053                                'label' => 'BP_MEMBERS_SLUG (deprecated)',
    10411054                                'value' => defined( 'BP_MEMBERS_SLUG' ) ? BP_MEMBERS_SLUG : __( 'Undefined', 'buddypress' ),
    10421055                                'debug' => defined( 'BP_MEMBERS_SLUG' ) ? BP_MEMBERS_SLUG : 'undefined',
    10431056                        ),
    1044                         'BP_GROUPS_SLUG' => array(
     1057                        'BP_GROUPS_SLUG'                        => array(
    10451058                                'label' => 'BP_GROUPS_SLUG (deprecated)',
    10461059                                'value' => defined( 'BP_GROUPS_SLUG' ) ? BP_GROUPS_SLUG : __( 'Undefined', 'buddypress' ),
    10471060                                'debug' => defined( 'BP_GROUPS_SLUG' ) ? BP_GROUPS_SLUG : 'undefined',
    10481061                        ),
    1049                         'BP_MESSAGES_SLUG' => array(
     1062                        'BP_MESSAGES_SLUG'                      => array(
    10501063                                'label' => 'BP_MESSAGES_SLUG (deprecated)',
    10511064                                'value' => defined( 'BP_MESSAGES_SLUG' ) ? BP_MESSAGES_SLUG : __( 'Undefined', 'buddypress' ),
    10521065                                'debug' => defined( 'BP_MESSAGES_SLUG' ) ? BP_MESSAGES_SLUG : 'undefined',
    10531066                        ),
    1054                         'BP_NOTIFICATIONS_SLUG' => array(
     1067                        'BP_NOTIFICATIONS_SLUG'                 => array(
    10551068                                'label' => 'BP_NOTIFICATIONS_SLUG (deprecated)',
    10561069                                'value' => defined( 'BP_NOTIFICATIONS_SLUG' ) ? BP_NOTIFICATIONS_SLUG : __( 'Undefined', 'buddypress' ),
    10571070                                'debug' => defined( 'BP_NOTIFICATIONS_SLUG' ) ? BP_NOTIFICATIONS_SLUG : 'undefined',
    10581071                        ),
    1059                         'BP_BLOGS_SLUG' => array(
     1072                        'BP_BLOGS_SLUG'                         => array(
    10601073                                'label' => 'BP_BLOGS_SLUG (deprecated)',
    10611074                                'value' => defined( 'BP_BLOGS_SLUG' ) ? BP_BLOGS_SLUG : __( 'Undefined', 'buddypress' ),
    10621075                                'debug' => defined( 'BP_BLOGS_SLUG' ) ? BP_BLOGS_SLUG : 'undefined',
    10631076                        ),
    1064                         'BP_FRIENDS_SLUG' => array(
     1077                        'BP_FRIENDS_SLUG'                       => array(
    10651078                                'label' => 'BP_FRIENDS_SLUG (deprecated)',
    10661079                                'value' => defined( 'BP_FRIENDS_SLUG' ) ? BP_FRIENDS_SLUG : __( 'Undefined', 'buddypress' ),
    10671080                                'debug' => defined( 'BP_FRIENDS_SLUG' ) ? BP_FRIENDS_SLUG : 'undefined',
    10681081                        ),
    1069                         'BP_ACTIVITY_SLUG' => array(
     1082                        'BP_ACTIVITY_SLUG'                      => array(
    10701083                                'label' => 'BP_ACTIVITY_SLUG (deprecated)',
    10711084                                'value' => defined( 'BP_ACTIVITY_SLUG' ) ? BP_ACTIVITY_SLUG : __( 'Undefined', 'buddypress' ),
    10721085                                'debug' => defined( 'BP_ACTIVITY_SLUG' ) ? BP_ACTIVITY_SLUG : 'undefined',
    10731086                        ),
    1074                         'BP_SETTINGS_SLUG' => array(
     1087                        'BP_SETTINGS_SLUG'                      => array(
    10751088                                'label' => 'BP_SETTINGS_SLUG (deprecated)',
    10761089                                'value' => defined( 'BP_SETTINGS_SLUG' ) ? BP_SETTINGS_SLUG : __( 'Undefined', 'buddypress' ),
    10771090                                'debug' => defined( 'BP_SETTINGS_SLUG' ) ? BP_SETTINGS_SLUG : 'undefined',
    10781091                        ),
    1079                         'BP_XPROFILE_SLUG' => array(
     1092                        'BP_XPROFILE_SLUG'                      => array(
    10801093                                'label' => 'BP_XPROFILE_SLUG (deprecated)',
    10811094                                'value' => defined( 'BP_XPROFILE_SLUG' ) ? BP_XPROFILE_SLUG : __( 'Undefined', 'buddypress' ),
    10821095                                'debug' => defined( 'BP_XPROFILE_SLUG' ) ? BP_XPROFILE_SLUG : 'undefined',
    10831096                        ),
    1084                         'BP_FORUMS_SLUG' => array(
     1097                        'BP_FORUMS_SLUG'                        => array(
    10851098                                'label' => 'BP_FORUMS_SLUG (deprecated)',
    10861099                                'value' => defined( 'BP_FORUMS_SLUG' ) ? BP_FORUMS_SLUG : __( 'Undefined', 'buddypress' ),
    10871100                                'debug' => defined( 'BP_FORUMS_SLUG' ) ? BP_FORUMS_SLUG : 'undefined',
    10881101                        ),
    1089                         'BP_SEARCH_SLUG' => array(
     1102                        'BP_SEARCH_SLUG'                        => array(
    10901103                                'label' => 'BP_SEARCH_SLUG (deprecated)',
    10911104                                'value' => defined( 'BP_SEARCH_SLUG' ) ? BP_SEARCH_SLUG : __( 'Undefined', 'buddypress' ),
    10921105                                'debug' => defined( 'BP_SEARCH_SLUG' ) ? BP_SEARCH_SLUG : 'undefined',
    10931106                        ),
    1094                 )
     1107                ),
    10951108        );
    10961109
Note: See TracChangeset for help on using the changeset viewer.