Changeset 13886 for trunk/src/bp-core/admin/bp-core-admin-tools.php
- Timestamp:
- 06/01/2024 07:41:30 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-tools.php
r13878 r13886 264 264 * @since 2.0.0 265 265 * 266 * @global wpdb $wpdb WordPress database object. 267 * 266 268 * @return array 267 269 */ … … 270 272 271 273 if ( ! bp_is_active( 'friends' ) ) { 272 return ;274 return array( 2, __( 'Friends component is not active.', 'buddypress' ) ); 273 275 } 274 276 … … 290 292 if ( $total_users > 0 ) { 291 293 $per_query = 500; 292 $offset = 0;294 $offset = 0; 293 295 while ( $offset < $total_users ) { 294 296 // Only bother updating counts for users who actually have friendships. … … 323 325 * @since 2.0.0 324 326 * 327 * @global wpdb $wpdb WordPress database object. 328 * 325 329 * @return array 326 330 */ … … 329 333 330 334 if ( ! bp_is_active( 'groups' ) ) { 331 return ;335 return array( 2, __( 'Groups component is not active.', 'buddypress' ) ); 332 336 } 333 337 … … 348 352 if ( $total_users > 0 ) { 349 353 $per_query = 500; 350 $offset = 0;354 $offset = 0; 351 355 while ( $offset < $total_users ) { 352 356 // But only bother to update counts for users that have groups. … … 379 383 380 384 // Default to failure text. 381 $result = __( 'Failed!','buddypress' );385 $result = __( 'Failed!', 'buddypress' ); 382 386 383 387 // Default to unrepaired. 384 $repair 388 $repair = false; 385 389 386 390 // Run function if blogs component is active. … … 412 416 if ( ! is_multisite() ) { 413 417 return array( 0, sprintf( $statement, __( 'Failed!', 'buddypress' ) ) ); 414 418 } 415 419 416 420 // Run function if blogs component is active. … … 459 463 * 460 464 * @since 2.0.0 465 * 466 * @return array 461 467 */ 462 468 function bp_admin_repair_count_members() { … … 474 480 * @since 6.0.0 475 481 * 482 * @global wpdb $wpdb WordPress database object. 483 * 476 484 * @return array 477 485 */ … … 479 487 global $wpdb; 480 488 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'; 483 491 484 492 /* translators: %s: the result of the action performed by the repair tool */ … … 490 498 // Check for existence of invitations table. 491 499 $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 ) { 494 502 // Early return if table creation failed. 495 503 return array( 2, sprintf( $statement, $result ) ); … … 512 520 if ( empty( $records ) ) { 513 521 $migrate_result = __( 'Migrated invitations!', 'buddypress' ); 514 return array( 0, sprintf( $statement . ' ' . $migrate_statement 522 return array( 0, sprintf( $statement . ' ' . $migrate_statement, $result, $migrate_result ) ); 515 523 } else { 516 return array( 2, sprintf( $statement . ' ' . $migrate_statement 524 return array( 2, sprintf( $statement . ' ' . $migrate_statement, $result, $migrate_result ) ); 517 525 } 518 526 } … … 527 535 * @since 2.0.0 528 536 * 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. 531 539 * @return false|Closure 532 540 */ 533 function bp_admin_tools_feedback( $message, $class = false ) { 541 function bp_admin_tools_feedback( $message, $html_class = false ) { 542 $class = $html_class; 534 543 if ( is_string( $message ) ) { 535 544 $message = '<p>' . $message . '</p>'; 536 $class = $class ? $class : 'updated';545 $class = $class ? $class : 'updated'; 537 546 } elseif ( is_wp_error( $message ) ) { 538 547 $errors = $message->get_error_messages(); … … 566 575 'li' => true, 567 576 'div' => array( 568 'id' => true,577 'id' => true, 569 578 'class' => true, 570 579 ), … … 592 601 ?> 593 602 <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> 595 604 <hr class="wp-header-end"> 596 605 … … 602 611 * @since 2.0.0 603 612 */ 604 do_action( 'bp_network_tool_box' ); ?> 613 do_action( 'bp_network_tool_box' ); 614 ?> 605 615 606 616 </div> … … 615 625 function bp_core_admin_available_tools_intro() { 616 626 $query_arg = array( 617 'page' => 'bp-tools' 627 'page' => 'bp-tools', 618 628 ); 619 629 620 $page = bp_core_do_network_admin() ? 'admin.php' : 'tools.php' 630 $page = bp_core_do_network_admin() ? 'admin.php' : 'tools.php'; 621 631 $url = add_query_arg( $query_arg, bp_get_admin_url( $page ) ); 622 632 ?> 623 633 <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> 625 635 626 636 <dl> 627 <dt><?php esc_html_e( 'Repair Tools', 'buddypress' ) ?></dt>637 <dt><?php esc_html_e( 'Repair Tools', 'buddypress' ); ?></dt> 628 638 <dd> 629 639 <?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' ); ?> … … 637 647 </dd> 638 648 639 <dt><?php esc_html_e( 'Manage Invitations', 'buddypress' ) ?></dt>649 <dt><?php esc_html_e( 'Manage Invitations', 'buddypress' ); ?></dt> 640 650 <dd> 641 651 <?php esc_html_e( 'When enabled, BuddyPress allows your users to invite nonmembers to join your site.', 'buddypress' ); ?> … … 650 660 </dd> 651 661 652 <dt><?php esc_html_e( 'Manage Opt-outs', 'buddypress' ) ?></dt>662 <dt><?php esc_html_e( 'Manage Opt-outs', 'buddypress' ); ?></dt> 653 663 <dd> 654 664 <?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' ); ?> … … 685 695 } 686 696 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 ); 694 706 695 707 if ( $emails ) { … … 699 711 } 700 712 713 $email_tax_type = bp_get_email_tax_type(); 714 701 715 // 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 ); 707 724 708 725 if ( $email_types ) { 709 726 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'; 715 732 bp_core_install_emails(); 716 733 … … 779 796 780 797 if ( isset( $active_components[ $component_id ] ) ) { 781 $prefix = $active_components[ $component_id ] . ': ';798 $prefix = $active_components[ $component_id ] . ': '; 782 799 } 783 800 … … 865 882 $theme_settings, 866 883 $bp_settings 867 ) 884 ), 868 885 ); 869 886 … … 872 889 'description' => __( 'These constants can alter where and how parts of BuddyPress are loaded or works.', 'buddypress' ), 873 890 'fields' => array( 874 'BP_VERSION' => array(891 'BP_VERSION' => array( 875 892 'label' => 'BP_VERSION', 876 893 'value' => BP_VERSION, 877 894 ), 878 'BP_DB_VERSION' => array(895 'BP_DB_VERSION' => array( 879 896 'label' => 'BP_DB_VERSION', 880 897 'value' => BP_DB_VERSION, 881 898 ), 882 'BP_REQUIRED_PHP_VERSION' => array(899 'BP_REQUIRED_PHP_VERSION' => array( 883 900 'label' => 'BP_REQUIRED_PHP_VERSION', 884 901 'value' => BP_REQUIRED_PHP_VERSION, 885 902 ), 886 'BP_PLUGIN_DIR' => array(903 'BP_PLUGIN_DIR' => array( 887 904 'label' => 'BP_PLUGIN_DIR', 888 905 'value' => BP_PLUGIN_DIR, 889 906 ), 890 'BP_PLUGIN_URL' => array(907 'BP_PLUGIN_URL' => array( 891 908 'label' => 'BP_PLUGIN_URL', 892 909 'value' => BP_PLUGIN_URL, 893 910 ), 894 'BP_IGNORE_DEPRECATED' => array(911 'BP_IGNORE_DEPRECATED' => array( 895 912 'label' => 'BP_IGNORE_DEPRECATED', 896 913 'value' => defined( 'BP_IGNORE_DEPRECATED' ) && BP_IGNORE_DEPRECATED ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ), 897 914 'debug' => defined( 'BP_IGNORE_DEPRECATED' ) ? BP_IGNORE_DEPRECATED : 'undefined', 898 915 ), 899 'BP_LOAD_DEPRECATED' => array(916 'BP_LOAD_DEPRECATED' => array( 900 917 'label' => 'BP_LOAD_DEPRECATED', 901 918 'value' => defined( 'BP_LOAD_DEPRECATED' ) && BP_LOAD_DEPRECATED ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ), 902 919 'debug' => defined( 'BP_LOAD_DEPRECATED' ) ? BP_LOAD_DEPRECATED : 'undefined', 903 920 ), 904 'BP_ROOT_BLOG' => array(921 'BP_ROOT_BLOG' => array( 905 922 'label' => 'BP_ROOT_BLOG', 906 923 'value' => BP_ROOT_BLOG, 907 924 ), 908 'BP_ENABLE_MULTIBLOG' => array(925 'BP_ENABLE_MULTIBLOG' => array( 909 926 'label' => 'BP_ENABLE_MULTIBLOG', 910 927 'value' => defined( 'BP_ENABLE_MULTIBLOG' ) && BP_ENABLE_MULTIBLOG ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ), 911 928 'debug' => defined( 'BP_ENABLE_MULTIBLOG' ) ? BP_ENABLE_MULTIBLOG : 'undefined', 912 929 ), 913 'BP_ENABLE_ROOT_PROFILES' => array(930 'BP_ENABLE_ROOT_PROFILES' => array( 914 931 'label' => 'BP_ENABLE_ROOT_PROFILES', 915 932 'value' => defined( 'BP_ENABLE_ROOT_PROFILES' ) && BP_ENABLE_ROOT_PROFILES ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ), 916 933 'debug' => defined( 'BP_ENABLE_ROOT_PROFILES' ) ? BP_ENABLE_ROOT_PROFILES : 'undefined', 917 934 ), 918 'BP_DEFAULT_COMPONENT' => array(935 'BP_DEFAULT_COMPONENT' => array( 919 936 'label' => 'BP_DEFAULT_COMPONENT', 920 937 'value' => defined( 'BP_DEFAULT_COMPONENT' ) ? BP_DEFAULT_COMPONENT : __( 'Undefined', 'buddypress' ), 921 938 'debug' => defined( 'BP_DEFAULT_COMPONENT' ) ? BP_DEFAULT_COMPONENT : 'undefined', 922 939 ), 923 'BP_XPROFILE_BASE_GROUP_NAME' => array(940 'BP_XPROFILE_BASE_GROUP_NAME' => array( 924 941 'label' => 'BP_XPROFILE_BASE_GROUP_NAME', 925 942 'value' => BP_XPROFILE_BASE_GROUP_NAME, 926 943 ), 927 'BP_XPROFILE_FULLNAME_FIELD_NAME' => array(944 'BP_XPROFILE_FULLNAME_FIELD_NAME' => array( 928 945 'label' => 'BP_XPROFILE_FULLNAME_FIELD_NAME', 929 946 'value' => BP_XPROFILE_FULLNAME_FIELD_NAME, 930 947 ), 931 'BP_MESSAGES_AUTOCOMPLETE_ALL' => array(948 'BP_MESSAGES_AUTOCOMPLETE_ALL' => array( 932 949 'label' => 'BP_MESSAGES_AUTOCOMPLETE_ALL', 933 950 'value' => defined( 'BP_MESSAGES_AUTOCOMPLETE_ALL' ) && BP_MESSAGES_AUTOCOMPLETE_ALL ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ), 934 951 ), 935 'BP_DISABLE_AUTO_GROUP_JOIN' => array(952 'BP_DISABLE_AUTO_GROUP_JOIN' => array( 936 953 'label' => 'BP_DISABLE_AUTO_GROUP_JOIN', 937 954 'value' => defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) && BP_DISABLE_AUTO_GROUP_JOIN ? __( 'Disabled', 'buddypress' ) : __( 'Enabled', 'buddypress' ), 938 955 'debug' => defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) ? BP_DISABLE_AUTO_GROUP_JOIN : 'undefined', 939 956 ), 940 'BP_GROUPS_DEFAULT_EXTENSION' => array(957 'BP_GROUPS_DEFAULT_EXTENSION' => array( 941 958 'label' => 'BP_GROUPS_DEFAULT_EXTENSION', 942 959 'value' => defined( 'BP_GROUPS_DEFAULT_EXTENSION' ) ? BP_GROUPS_DEFAULT_EXTENSION : __( 'Undefined', 'buddypress' ), 943 960 'debug' => defined( 'BP_GROUPS_DEFAULT_EXTENSION' ) ? BP_GROUPS_DEFAULT_EXTENSION : 'undefined', 944 961 ), 945 'BP_SIGNUPS_SKIP_USER_CREATION' => array(962 'BP_SIGNUPS_SKIP_USER_CREATION' => array( 946 963 'label' => 'BP_SIGNUPS_SKIP_USER_CREATION (deprecated)', 947 964 'value' => defined( 'BP_SIGNUPS_SKIP_USER_CREATION' ) && BP_SIGNUPS_SKIP_USER_CREATION ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ), … … 953 970 'debug' => defined( 'BP_MEMBERS_REQUIRED_PASSWORD_STRENGTH' ) ? BP_MEMBERS_REQUIRED_PASSWORD_STRENGTH : 'undefined', 954 971 ), 955 'BP_EMBED_DISABLE_PRIVATE_MESSAGES' => array(972 'BP_EMBED_DISABLE_PRIVATE_MESSAGES' => array( 956 973 'label' => 'BP_EMBED_DISABLE_PRIVATE_MESSAGES', 957 974 'value' => defined( 'BP_EMBED_DISABLE_PRIVATE_MESSAGES' ) ? BP_EMBED_DISABLE_PRIVATE_MESSAGES : __( 'Undefined', 'buddypress' ), 958 975 'debug' => defined( 'BP_EMBED_DISABLE_PRIVATE_MESSAGES' ) ? BP_EMBED_DISABLE_PRIVATE_MESSAGES : 'undefined', 959 976 ), 960 'BP_EMBED_DISABLE_ACTIVITY_REPLIES' => array(977 'BP_EMBED_DISABLE_ACTIVITY_REPLIES' => array( 961 978 'label' => 'BP_EMBED_DISABLE_ACTIVITY_REPLIES', 962 979 'value' => defined( 'BP_EMBED_DISABLE_ACTIVITY_REPLIES' ) ? BP_EMBED_DISABLE_ACTIVITY_REPLIES : __( 'Undefined', 'buddypress' ), … … 968 985 'debug' => defined( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE' ) ? BP_ENABLE_USERNAME_COMPATIBILITY_MODE : 'undefined', 969 986 ), 970 'BP_AVATAR_DEFAULT_THUMB' => array(987 'BP_AVATAR_DEFAULT_THUMB' => array( 971 988 'label' => 'BP_AVATAR_DEFAULT_THUMB', 972 989 'value' => defined( 'BP_AVATAR_DEFAULT_THUMB' ) ? BP_AVATAR_DEFAULT_THUMB : __( 'Undefined', 'buddypress' ), 973 990 'debug' => defined( 'BP_AVATAR_DEFAULT_THUMB' ) ? BP_AVATAR_DEFAULT_THUMB : 'undefined', 974 991 ), 975 'BP_AVATAR_DEFAULT' => array(992 'BP_AVATAR_DEFAULT' => array( 976 993 'label' => 'BP_AVATAR_DEFAULT', 977 994 'value' => defined( 'BP_AVATAR_DEFAULT' ) ? BP_AVATAR_DEFAULT : __( 'Undefined', 'buddypress' ), 978 995 'debug' => defined( 'BP_AVATAR_DEFAULT' ) ? BP_AVATAR_DEFAULT : 'undefined', 979 996 ), 980 'BP_AVATAR_URL' => array(997 'BP_AVATAR_URL' => array( 981 998 'label' => 'BP_AVATAR_URL', 982 999 'value' => defined( 'BP_AVATAR_URL' ) ? BP_AVATAR_URL : __( 'Undefined', 'buddypress' ), 983 1000 'debug' => defined( 'BP_AVATAR_URL' ) ? BP_AVATAR_URL : 'undefined', 984 1001 ), 985 'BP_AVATAR_UPLOAD_PATH' => array(1002 'BP_AVATAR_UPLOAD_PATH' => array( 986 1003 'label' => 'BP_AVATAR_UPLOAD_PATH', 987 1004 'value' => defined( 'BP_AVATAR_UPLOAD_PATH' ) ? BP_AVATAR_UPLOAD_PATH : __( 'Undefined', 'buddypress' ), 988 1005 'debug' => defined( 'BP_AVATAR_UPLOAD_PATH' ) ? BP_AVATAR_UPLOAD_PATH : 'undefined', 989 1006 ), 990 'BP_SHOW_AVATARS' => array(1007 'BP_SHOW_AVATARS' => array( 991 1008 'label' => 'BP_SHOW_AVATARS', 992 1009 'value' => defined( 'BP_SHOW_AVATARS' ) && BP_SHOW_AVATARS ? __( 'Enabled', 'buddypress' ) : __( 'Disabled', 'buddypress' ), 993 1010 'debug' => defined( 'BP_SHOW_AVATARS' ) ? BP_SHOW_AVATARS : 'undefined', 994 1011 ), 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( 1000 1013 'label' => 'BP_AVATAR_ORIGINAL_MAX_WIDTH', 1001 1014 'value' => BP_AVATAR_ORIGINAL_MAX_WIDTH, 1002 1015 ), 1003 'BP_AVATAR_ORIGINAL_MAX_FILESIZE' => array(1016 'BP_AVATAR_ORIGINAL_MAX_FILESIZE' => array( 1004 1017 'label' => 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', 1005 1018 'value' => size_format( BP_AVATAR_ORIGINAL_MAX_FILESIZE ), 1006 1019 'debug' => BP_AVATAR_ORIGINAL_MAX_FILESIZE, 1007 1020 ), 1008 'BP_AVATAR_FULL_HEIGHT' => array(1021 'BP_AVATAR_FULL_HEIGHT' => array( 1009 1022 'label' => 'BP_AVATAR_FULL_HEIGHT', 1010 1023 'value' => BP_AVATAR_FULL_HEIGHT, 1011 1024 ), 1012 'BP_AVATAR_FULL_WIDTH' => array(1025 'BP_AVATAR_FULL_WIDTH' => array( 1013 1026 'label' => 'BP_AVATAR_FULL_WIDTH', 1014 1027 'value' => BP_AVATAR_FULL_WIDTH, 1015 1028 ), 1016 'BP_AVATAR_THUMB_HEIGHT' => array(1029 'BP_AVATAR_THUMB_HEIGHT' => array( 1017 1030 'label' => 'BP_AVATAR_THUMB_HEIGHT', 1018 1031 'value' => BP_AVATAR_THUMB_HEIGHT, 1019 1032 ), 1020 'BP_AVATAR_THUMB_WIDTH' => array(1033 'BP_AVATAR_THUMB_WIDTH' => array( 1021 1034 'label' => 'BP_AVATAR_THUMB_WIDTH', 1022 1035 'value' => BP_AVATAR_THUMB_WIDTH, 1023 1036 ), 1024 'BP_USE_WP_ADMIN_BAR' => array(1037 'BP_USE_WP_ADMIN_BAR' => array( 1025 1038 'label' => 'BP_USE_WP_ADMIN_BAR (deprecated)', 1026 1039 'value' => defined( 'BP_USE_WP_ADMIN_BAR' ) ? BP_USE_WP_ADMIN_BAR : __( 'Undefined', 'buddypress' ), 1027 1040 'debug' => defined( 'BP_USE_WP_ADMIN_BAR' ) ? BP_USE_WP_ADMIN_BAR : 'undefined', 1028 1041 ), 1029 'BP_FRIENDS_DB_VERSION' => array(1042 'BP_FRIENDS_DB_VERSION' => array( 1030 1043 'label' => 'BP_FRIENDS_DB_VERSION (deprecated)', 1031 1044 'value' => defined( 'BP_FRIENDS_DB_VERSION' ) ? BP_FRIENDS_DB_VERSION : __( 'Undefined', 'buddypress' ), 1032 1045 'debug' => defined( 'BP_FRIENDS_DB_VERSION' ) ? BP_FRIENDS_DB_VERSION : 'undefined', 1033 1046 ), 1034 'BP_FORUMS_PARENT_FORUM_ID' => array(1047 'BP_FORUMS_PARENT_FORUM_ID' => array( 1035 1048 'label' => 'BP_FORUMS_PARENT_FORUM_ID (deprecated)', 1036 1049 'value' => defined( 'BP_FORUMS_PARENT_FORUM_ID' ) ? BP_FORUMS_PARENT_FORUM_ID : __( 'Undefined', 'buddypress' ), 1037 1050 'debug' => defined( 'BP_FORUMS_PARENT_FORUM_ID' ) ? BP_FORUMS_PARENT_FORUM_ID : 'undefined', 1038 1051 ), 1039 'BP_MEMBERS_SLUG' => array(1052 'BP_MEMBERS_SLUG' => array( 1040 1053 'label' => 'BP_MEMBERS_SLUG (deprecated)', 1041 1054 'value' => defined( 'BP_MEMBERS_SLUG' ) ? BP_MEMBERS_SLUG : __( 'Undefined', 'buddypress' ), 1042 1055 'debug' => defined( 'BP_MEMBERS_SLUG' ) ? BP_MEMBERS_SLUG : 'undefined', 1043 1056 ), 1044 'BP_GROUPS_SLUG' => array(1057 'BP_GROUPS_SLUG' => array( 1045 1058 'label' => 'BP_GROUPS_SLUG (deprecated)', 1046 1059 'value' => defined( 'BP_GROUPS_SLUG' ) ? BP_GROUPS_SLUG : __( 'Undefined', 'buddypress' ), 1047 1060 'debug' => defined( 'BP_GROUPS_SLUG' ) ? BP_GROUPS_SLUG : 'undefined', 1048 1061 ), 1049 'BP_MESSAGES_SLUG' => array(1062 'BP_MESSAGES_SLUG' => array( 1050 1063 'label' => 'BP_MESSAGES_SLUG (deprecated)', 1051 1064 'value' => defined( 'BP_MESSAGES_SLUG' ) ? BP_MESSAGES_SLUG : __( 'Undefined', 'buddypress' ), 1052 1065 'debug' => defined( 'BP_MESSAGES_SLUG' ) ? BP_MESSAGES_SLUG : 'undefined', 1053 1066 ), 1054 'BP_NOTIFICATIONS_SLUG' => array(1067 'BP_NOTIFICATIONS_SLUG' => array( 1055 1068 'label' => 'BP_NOTIFICATIONS_SLUG (deprecated)', 1056 1069 'value' => defined( 'BP_NOTIFICATIONS_SLUG' ) ? BP_NOTIFICATIONS_SLUG : __( 'Undefined', 'buddypress' ), 1057 1070 'debug' => defined( 'BP_NOTIFICATIONS_SLUG' ) ? BP_NOTIFICATIONS_SLUG : 'undefined', 1058 1071 ), 1059 'BP_BLOGS_SLUG' => array(1072 'BP_BLOGS_SLUG' => array( 1060 1073 'label' => 'BP_BLOGS_SLUG (deprecated)', 1061 1074 'value' => defined( 'BP_BLOGS_SLUG' ) ? BP_BLOGS_SLUG : __( 'Undefined', 'buddypress' ), 1062 1075 'debug' => defined( 'BP_BLOGS_SLUG' ) ? BP_BLOGS_SLUG : 'undefined', 1063 1076 ), 1064 'BP_FRIENDS_SLUG' => array(1077 'BP_FRIENDS_SLUG' => array( 1065 1078 'label' => 'BP_FRIENDS_SLUG (deprecated)', 1066 1079 'value' => defined( 'BP_FRIENDS_SLUG' ) ? BP_FRIENDS_SLUG : __( 'Undefined', 'buddypress' ), 1067 1080 'debug' => defined( 'BP_FRIENDS_SLUG' ) ? BP_FRIENDS_SLUG : 'undefined', 1068 1081 ), 1069 'BP_ACTIVITY_SLUG' => array(1082 'BP_ACTIVITY_SLUG' => array( 1070 1083 'label' => 'BP_ACTIVITY_SLUG (deprecated)', 1071 1084 'value' => defined( 'BP_ACTIVITY_SLUG' ) ? BP_ACTIVITY_SLUG : __( 'Undefined', 'buddypress' ), 1072 1085 'debug' => defined( 'BP_ACTIVITY_SLUG' ) ? BP_ACTIVITY_SLUG : 'undefined', 1073 1086 ), 1074 'BP_SETTINGS_SLUG' => array(1087 'BP_SETTINGS_SLUG' => array( 1075 1088 'label' => 'BP_SETTINGS_SLUG (deprecated)', 1076 1089 'value' => defined( 'BP_SETTINGS_SLUG' ) ? BP_SETTINGS_SLUG : __( 'Undefined', 'buddypress' ), 1077 1090 'debug' => defined( 'BP_SETTINGS_SLUG' ) ? BP_SETTINGS_SLUG : 'undefined', 1078 1091 ), 1079 'BP_XPROFILE_SLUG' => array(1092 'BP_XPROFILE_SLUG' => array( 1080 1093 'label' => 'BP_XPROFILE_SLUG (deprecated)', 1081 1094 'value' => defined( 'BP_XPROFILE_SLUG' ) ? BP_XPROFILE_SLUG : __( 'Undefined', 'buddypress' ), 1082 1095 'debug' => defined( 'BP_XPROFILE_SLUG' ) ? BP_XPROFILE_SLUG : 'undefined', 1083 1096 ), 1084 'BP_FORUMS_SLUG' => array(1097 'BP_FORUMS_SLUG' => array( 1085 1098 'label' => 'BP_FORUMS_SLUG (deprecated)', 1086 1099 'value' => defined( 'BP_FORUMS_SLUG' ) ? BP_FORUMS_SLUG : __( 'Undefined', 'buddypress' ), 1087 1100 'debug' => defined( 'BP_FORUMS_SLUG' ) ? BP_FORUMS_SLUG : 'undefined', 1088 1101 ), 1089 'BP_SEARCH_SLUG' => array(1102 'BP_SEARCH_SLUG' => array( 1090 1103 'label' => 'BP_SEARCH_SLUG (deprecated)', 1091 1104 'value' => defined( 'BP_SEARCH_SLUG' ) ? BP_SEARCH_SLUG : __( 'Undefined', 'buddypress' ), 1092 1105 'debug' => defined( 'BP_SEARCH_SLUG' ) ? BP_SEARCH_SLUG : 'undefined', 1093 1106 ), 1094 ) 1107 ), 1095 1108 ); 1096 1109
Note: See TracChangeset
for help on using the changeset viewer.