Changeset 12553 for trunk/src/bp-core/admin/bp-core-admin-settings.php
- Timestamp:
- 02/29/2020 03:28:51 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-settings.php
r12056 r12553 148 148 } 149 149 150 /** Members *******************************************************************/ 151 152 /** 153 * Profile settings section description for the settings page. 154 * 155 * @since 1.6.0 156 */ 157 function bp_admin_setting_callback_members_section() { } 158 159 /** 160 * Allow members to upload avatars field. 161 * 162 * @since 1.6.0 163 * @since 6.0.0 Setting has been moved into the Members section. 164 */ 165 function bp_admin_setting_callback_avatar_uploads() { 166 ?> 167 <input id="bp-disable-avatar-uploads" name="bp-disable-avatar-uploads" type="checkbox" value="1" <?php checked( !bp_disable_avatar_uploads( false ) ); ?> /> 168 <label for="bp-disable-avatar-uploads"><?php _e( 'Allow registered members to upload avatars', 'buddypress' ); ?></label> 169 <?php 170 } 171 172 /** 173 * Allow members to upload cover images field. 174 * 175 * @since 2.4.0 176 * @since 6.0.0 Setting has been moved into the Members section. 177 */ 178 function bp_admin_setting_callback_cover_image_uploads() { 179 ?> 180 <input id="bp-disable-cover-image-uploads" name="bp-disable-cover-image-uploads" type="checkbox" value="1" <?php checked( ! bp_disable_cover_image_uploads() ); ?> /> 181 <label for="bp-disable-cover-image-uploads"><?php _e( 'Allow registered members to upload cover images', 'buddypress' ); ?></label> 182 <?php 183 } 184 150 185 /** XProfile ******************************************************************/ 151 186 … … 169 204 <label for="bp-disable-profile-sync"><?php _e( 'Enable BuddyPress to WordPress profile syncing', 'buddypress' ); ?></label> 170 205 171 <?php172 }173 174 /**175 * Allow members to upload avatars field.176 *177 * @since 1.6.0178 *179 */180 function bp_admin_setting_callback_avatar_uploads() {181 ?>182 183 <input id="bp-disable-avatar-uploads" name="bp-disable-avatar-uploads" type="checkbox" value="1" <?php checked( !bp_disable_avatar_uploads( false ) ); ?> />184 <label for="bp-disable-avatar-uploads"><?php _e( 'Allow registered members to upload avatars', 'buddypress' ); ?></label>185 186 <?php187 }188 189 /**190 * Allow members to upload cover images field.191 *192 * @since 2.4.0193 */194 function bp_admin_setting_callback_cover_image_uploads() {195 ?>196 <input id="bp-disable-cover-image-uploads" name="bp-disable-cover-image-uploads" type="checkbox" value="1" <?php checked( ! bp_disable_cover_image_uploads() ); ?> />197 <label for="bp-disable-cover-image-uploads"><?php _e( 'Allow registered members to upload cover images', 'buddypress' ); ?></label>198 206 <?php 199 207 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)