Changeset 10152 for trunk/src/bp-core/bp-core-options.php
- Timestamp:
- 09/29/2015 10:03:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-options.php
r10108 r10152 24 24 /** Components ********************************************************/ 25 25 26 'bp-deactivated-components' => array(),26 'bp-deactivated-components' => array(), 27 27 28 28 /** bbPress ***********************************************************/ 29 29 30 30 // Legacy bbPress config location 31 'bb-config-location' => ABSPATH . 'bb-config.php',31 'bb-config-location' => ABSPATH . 'bb-config.php', 32 32 33 33 /** XProfile **********************************************************/ 34 34 35 35 // Base profile groups name 36 'bp-xprofile-base-group-name' => 'Base',36 'bp-xprofile-base-group-name' => 'Base', 37 37 38 38 // Base fullname field name 39 'bp-xprofile-fullname-field-name' => 'Name',39 'bp-xprofile-fullname-field-name' => 'Name', 40 40 41 41 /** Blogs *************************************************************/ 42 42 43 43 // Used to decide if blogs need indexing 44 'bp-blogs-first-install' => false,44 'bp-blogs-first-install' => false, 45 45 46 46 /** Settings **********************************************************/ 47 47 48 48 // Disable the WP to BP profile sync 49 'bp-disable-profile-sync' => false,49 'bp-disable-profile-sync' => false, 50 50 51 51 // Hide the Toolbar for logged out users 52 'hide-loggedout-adminbar' => false,52 'hide-loggedout-adminbar' => false, 53 53 54 54 // Avatar uploads 55 'bp-disable-avatar-uploads' => false, 55 'bp-disable-avatar-uploads' => false, 56 57 // Cover image uploads 58 'bp-disable-cover-image-uploads' => false, 56 59 57 60 // Group Profile Photos 58 'bp-disable-group-avatar-uploads' => false, 61 'bp-disable-group-avatar-uploads' => false, 62 63 // Group Cover image uploads 64 'bp-disable-group-cover-image-uploads' => false, 59 65 60 66 // Allow users to delete their own accounts 61 'bp-disable-account-deletion' => false,67 'bp-disable-account-deletion' => false, 62 68 63 69 // Allow comments on blog and forum activity items 64 'bp-disable-blogforum-comments' => true,70 'bp-disable-blogforum-comments' => true, 65 71 66 72 // The ID for the current theme package. 67 '_bp_theme_package_id' => 'legacy',73 '_bp_theme_package_id' => 'legacy', 68 74 69 75 /** Groups ************************************************************/ … … 72 78 73 79 // Restrict group creation to super admins 74 'bp_restrict_group_creation' => false,80 'bp_restrict_group_creation' => false, 75 81 76 82 /** Akismet ***********************************************************/ 77 83 78 84 // Users from all sites can post 79 '_bp_enable_akismet' => true,85 '_bp_enable_akismet' => true, 80 86 81 87 /** Activity HeartBeat ************************************************/ 82 88 83 89 // HeartBeat is on to refresh activities 84 '_bp_enable_heartbeat_refresh' => true,90 '_bp_enable_heartbeat_refresh' => true, 85 91 86 92 /** BuddyBar **********************************************************/ 87 93 88 94 // Force the BuddyBar 89 '_bp_force_buddybar' => false,95 '_bp_force_buddybar' => false, 90 96 91 97 /** Legacy theme *********************************************/ 92 98 93 99 // Whether to register the bp-default themes directory 94 '_bp_retain_bp_default' => false,100 '_bp_retain_bp_default' => false, 95 101 96 102 /** Widgets **************************************************/ … … 597 603 598 604 /** 605 * Are members able to upload their own cover images? 606 * 607 * @since 2.4.0 608 * 609 * @uses bp_get_option() To get the cover image uploads option. 610 * 611 * @param bool $default Optional. Fallback value if not found in the database. 612 * Default: false. 613 * 614 * @return bool True if cover image uploads are disabled, otherwise false. 615 */ 616 function bp_disable_cover_image_uploads( $default = false ) { 617 618 /** 619 * Filters whether or not members are able to upload their own cover images. 620 * 621 * @since 2.4.0 622 * 623 * @param bool $value Whether or not members are able to upload their own cover images. 624 */ 625 return (bool) apply_filters( 'bp_disable_cover_image_uploads', (bool) bp_get_option( 'bp-disable-cover-image-uploads', $default ) ); 626 } 627 628 /** 599 629 * Are group avatars disabled? 600 630 * … … 629 659 */ 630 660 return (bool) apply_filters( 'bp_disable_group_avatar_uploads', $disabled, $default ); 661 } 662 663 /** 664 * Are group cover images disabled? 665 * 666 * @since 2.4.0 667 * 668 * @uses bp_get_option() To get the group cover image uploads option. 669 * 670 * @param bool $default Optional. Fallback value if not found in the database. 671 * Default: false. 672 * 673 * @return bool True if group cover image uploads are disabled, otherwise false. 674 */ 675 function bp_disable_group_cover_image_uploads( $default = false ) { 676 677 /** 678 * Filters whether or not members are able to upload group cover images. 679 * 680 * @since 2.4.0 681 * 682 * @param bool $value Whether or not members are able to upload thier groups cover images. 683 */ 684 return (bool) apply_filters( 'bp_disable_group_cover_image_uploads', (bool) bp_get_option( 'bp-disable-group-cover-image-uploads', $default ) ); 631 685 } 632 686
Note: See TracChangeset
for help on using the changeset viewer.