Skip to:
Content

BuddyPress.org

Ticket #9245: 9245.01.patch

File 9245.01.patch, 6.0 KB (added by emaralive, 8 months ago)

Initial patch

  • src/bp-core/admin/bp-core-admin-tools.php

    diff --git src/bp-core/admin/bp-core-admin-tools.php src/bp-core/admin/bp-core-admin-tools.php
    index 788e84ab8..0b5bdb5ca 100644
    function bp_core_admin_debug_information( $debug_info = array() ) { 
    941941                        ),
    942942                        'BP_XPROFILE_BASE_GROUP_NAME'           => array(
    943943                                'label' => 'BP_XPROFILE_BASE_GROUP_NAME',
    944                                 'value' => BP_XPROFILE_BASE_GROUP_NAME,
     944                                'value' => defined( 'BP_XPROFILE_BASE_GROUP_NAME' ) ? BP_XPROFILE_BASE_GROUP_NAME : __( 'Undefined', 'buddypress' ),
    945945                        ),
    946946                        'BP_XPROFILE_FULLNAME_FIELD_NAME'       => array(
    947947                                'label' => 'BP_XPROFILE_FULLNAME_FIELD_NAME',
    948                                 'value' => BP_XPROFILE_FULLNAME_FIELD_NAME,
     948                                'value' => defined( 'BP_XPROFILE_FULLNAME_FIELD_NAME' ) ? BP_XPROFILE_FULLNAME_FIELD_NAME : __( 'Undefined', 'buddypress' ),
    949949                        ),
    950950                        'BP_MESSAGES_AUTOCOMPLETE_ALL'          => array(
    951951                                'label' => 'BP_MESSAGES_AUTOCOMPLETE_ALL',
    function bp_core_admin_debug_information( $debug_info = array() ) { 
    961961                                'value' => defined( 'BP_GROUPS_DEFAULT_EXTENSION' ) ? BP_GROUPS_DEFAULT_EXTENSION : __( 'Undefined', 'buddypress' ),
    962962                                'debug' => defined( 'BP_GROUPS_DEFAULT_EXTENSION' ) ? BP_GROUPS_DEFAULT_EXTENSION : 'undefined',
    963963                        ),
    964                         'BP_SIGNUPS_SKIP_USER_CREATION'         => array(
    965                                 'label' => 'BP_SIGNUPS_SKIP_USER_CREATION (deprecated)',
    966                                 'value' => defined( 'BP_SIGNUPS_SKIP_USER_CREATION' ) && BP_SIGNUPS_SKIP_USER_CREATION ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ),
    967                                 'debug' => defined( 'BP_SIGNUPS_SKIP_USER_CREATION' ) ? BP_SIGNUPS_SKIP_USER_CREATION : 'undefined',
    968                         ),
    969964                        'BP_MEMBERS_REQUIRED_PASSWORD_STRENGTH' => array(
    970965                                'label' => 'BP_MEMBERS_REQUIRED_PASSWORD_STRENGTH',
    971966                                'value' => defined( 'BP_MEMBERS_REQUIRED_PASSWORD_STRENGTH' ) ? BP_MEMBERS_REQUIRED_PASSWORD_STRENGTH : __( 'Undefined', 'buddypress' ),
    function bp_core_admin_debug_information( $debug_info = array() ) { 
    976971                                'value' => defined( 'BP_EMBED_DISABLE_PRIVATE_MESSAGES' ) ? BP_EMBED_DISABLE_PRIVATE_MESSAGES : __( 'Undefined', 'buddypress' ),
    977972                                'debug' => defined( 'BP_EMBED_DISABLE_PRIVATE_MESSAGES' ) ? BP_EMBED_DISABLE_PRIVATE_MESSAGES : 'undefined',
    978973                        ),
     974                        'BP_EMBED_DISABLE_ACTIVITY'     => array(
     975                                'label' => 'BP_EMBED_DISABLE_ACTIVITY',
     976                                'value' => defined( 'BP_EMBED_DISABLE' ) ? BP_EMBED_DISABLE_ACTIVITY : __( 'Undefined', 'buddypress' ),
     977                                'debug' => defined( 'BP_EMBED_DISABLE_ACTIVITY' ) ? BP_EMBED_DISABLE_ACTIVITY : 'undefined',
     978                        ),
    979979                        'BP_EMBED_DISABLE_ACTIVITY_REPLIES'     => array(
    980980                                'label' => 'BP_EMBED_DISABLE_ACTIVITY_REPLIES',
    981981                                'value' => defined( 'BP_EMBED_DISABLE_ACTIVITY_REPLIES' ) ? BP_EMBED_DISABLE_ACTIVITY_REPLIES : __( 'Undefined', 'buddypress' ),
    function bp_core_admin_debug_information( $debug_info = array() ) { 
    10361036                                'label' => 'BP_AVATAR_THUMB_WIDTH',
    10371037                                'value' => BP_AVATAR_THUMB_WIDTH,
    10381038                        ),
     1039                        'BP_FORUMS_PARENT_FORUM_ID'             => array(
     1040                                'label' => 'BP_FORUMS_PARENT_FORUM_ID',
     1041                                'value' => defined( 'BP_FORUMS_PARENT_FORUM_ID' ) ? BP_FORUMS_PARENT_FORUM_ID : __( 'Undefined', 'buddypress' ),
     1042                                'debug' => defined( 'BP_FORUMS_PARENT_FORUM_ID' ) ? BP_FORUMS_PARENT_FORUM_ID : 'undefined',
     1043                        ),
     1044                        'BP_FORUMS_SLUG'                        => array(
     1045                                'label' => 'BP_FORUMS_SLUG',
     1046                                'value' => defined( 'BP_FORUMS_SLUG' ) ? BP_FORUMS_SLUG : __( 'Undefined', 'buddypress' ),
     1047                                'debug' => defined( 'BP_FORUMS_SLUG' ) ? BP_FORUMS_SLUG : 'undefined',
     1048                        ),
     1049                        'BP_SEARCH_SLUG'                        => array(
     1050                                'label' => 'BP_SEARCH_SLUG',
     1051                                'value' => defined( 'BP_SEARCH_SLUG' ) ? BP_SEARCH_SLUG : __( 'Undefined', 'buddypress' ),
     1052                                'debug' => defined( 'BP_SEARCH_SLUG' ) ? BP_SEARCH_SLUG : 'undefined',
     1053                        ),
     1054                        'BP_SIGNUPS_SKIP_USER_CREATION'         => array(
     1055                                'label' => 'BP_SIGNUPS_SKIP_USER_CREATION (deprecated)',
     1056                                'value' => defined( 'BP_SIGNUPS_SKIP_USER_CREATION' ) && BP_SIGNUPS_SKIP_USER_CREATION ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ),
     1057                                'debug' => defined( 'BP_SIGNUPS_SKIP_USER_CREATION' ) ? BP_SIGNUPS_SKIP_USER_CREATION : 'undefined',
     1058                        ),
    10391059                        'BP_USE_WP_ADMIN_BAR'                   => array(
    10401060                                'label' => 'BP_USE_WP_ADMIN_BAR (deprecated)',
    10411061                                'value' => defined( 'BP_USE_WP_ADMIN_BAR' ) ? BP_USE_WP_ADMIN_BAR : __( 'Undefined', 'buddypress' ),
    function bp_core_admin_debug_information( $debug_info = array() ) { 
    10461066                                'value' => defined( 'BP_FRIENDS_DB_VERSION' ) ? BP_FRIENDS_DB_VERSION : __( 'Undefined', 'buddypress' ),
    10471067                                'debug' => defined( 'BP_FRIENDS_DB_VERSION' ) ? BP_FRIENDS_DB_VERSION : 'undefined',
    10481068                        ),
    1049                         'BP_FORUMS_PARENT_FORUM_ID'             => array(
    1050                                 'label' => 'BP_FORUMS_PARENT_FORUM_ID (deprecated)',
    1051                                 'value' => defined( 'BP_FORUMS_PARENT_FORUM_ID' ) ? BP_FORUMS_PARENT_FORUM_ID : __( 'Undefined', 'buddypress' ),
    1052                                 'debug' => defined( 'BP_FORUMS_PARENT_FORUM_ID' ) ? BP_FORUMS_PARENT_FORUM_ID : 'undefined',
    1053                         ),
    10541069                        'BP_MEMBERS_SLUG'                       => array(
    10551070                                'label' => 'BP_MEMBERS_SLUG (deprecated)',
    10561071                                'value' => defined( 'BP_MEMBERS_SLUG' ) ? BP_MEMBERS_SLUG : __( 'Undefined', 'buddypress' ),
    function bp_core_admin_debug_information( $debug_info = array() ) { 
    10961111                                'value' => defined( 'BP_XPROFILE_SLUG' ) ? BP_XPROFILE_SLUG : __( 'Undefined', 'buddypress' ),
    10971112                                'debug' => defined( 'BP_XPROFILE_SLUG' ) ? BP_XPROFILE_SLUG : 'undefined',
    10981113                        ),
    1099                         'BP_FORUMS_SLUG'                        => array(
    1100                                 'label' => 'BP_FORUMS_SLUG (deprecated)',
    1101                                 'value' => defined( 'BP_FORUMS_SLUG' ) ? BP_FORUMS_SLUG : __( 'Undefined', 'buddypress' ),
    1102                                 'debug' => defined( 'BP_FORUMS_SLUG' ) ? BP_FORUMS_SLUG : 'undefined',
    1103                         ),
    1104                         'BP_SEARCH_SLUG'                        => array(
    1105                                 'label' => 'BP_SEARCH_SLUG (deprecated)',
    1106                                 'value' => defined( 'BP_SEARCH_SLUG' ) ? BP_SEARCH_SLUG : __( 'Undefined', 'buddypress' ),
    1107                                 'debug' => defined( 'BP_SEARCH_SLUG' ) ? BP_SEARCH_SLUG : 'undefined',
    1108                         ),
    11091114                ),
    11101115        );
    11111116