Changeset 9551
- Timestamp:
- 02/24/2015 03:52:54 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-settings.php
r9503 r9551 14 14 * Main settings section description for the settings page 15 15 * 16 * @since BuddyPress (1.6 )16 * @since BuddyPress (1.6.0) 17 17 */ 18 18 function bp_admin_setting_callback_main_section() { } … … 21 21 * Admin bar for logged out users setting field 22 22 * 23 * @since BuddyPress (1.6 )23 * @since BuddyPress (1.6.0) 24 24 * 25 25 * @uses bp_form_option() To output the option value … … 37 37 * Allow members to delete their accounts setting field 38 38 * 39 * @since BuddyPress (1.6 )39 * @since BuddyPress (1.6.0) 40 40 * 41 41 * @uses checked() To display the checked attribute … … 55 55 * Groups settings section description for the settings page 56 56 * 57 * @since BuddyPress (1.6 )57 * @since BuddyPress (1.6.0) 58 58 */ 59 59 function bp_admin_setting_callback_activity_section() { } … … 62 62 * Allow Akismet setting field 63 63 * 64 * @since BuddyPress (1.6 )64 * @since BuddyPress (1.6.0) 65 65 * 66 66 * @uses checked() To display the checked attribute … … 78 78 * Allow activity comments on blog posts and forum posts 79 79 * 80 * @since BuddyPress (1.6 )80 * @since BuddyPress (1.6.0) 81 81 */ 82 82 function bp_admin_setting_callback_blogforum_comments() { … … 110 110 * function to flip the boolean before saving the intval. 111 111 * 112 * @since BuddyPress (1.6 )112 * @since BuddyPress (1.6.0) 113 113 */ 114 114 function bp_admin_sanitize_callback_blogforum_comments( $value = false ) { … … 121 121 * Profile settings section description for the settings page 122 122 * 123 * @since BuddyPress (1.6 )123 * @since BuddyPress (1.6.0) 124 124 */ 125 125 function bp_admin_setting_callback_xprofile_section() { } … … 128 128 * Enable BP->WP profile syncing field 129 129 * 130 * @since BuddyPress (1.6 )130 * @since BuddyPress (1.6.0) 131 131 * 132 132 * @uses bp_form_option() To output the option value … … 144 144 * Allow members to upload avatars field 145 145 * 146 * @since BuddyPress (1.6 )146 * @since BuddyPress (1.6.0) 147 147 * 148 148 * @uses checked() To display the checked attribute … … 162 162 * Groups settings section description for the settings page 163 163 * 164 * @since BuddyPress (1.6 )164 * @since BuddyPress (1.6.0) 165 165 */ 166 166 function bp_admin_setting_callback_groups_section() { } … … 169 169 * Allow all users to create groups field 170 170 * 171 * @since BuddyPress (1.6 )171 * @since BuddyPress (1.6.0) 172 172 * 173 173 * @uses checked() To display the checked attribute … … 188 188 * Forums settings section description for the settings page 189 189 * 190 * @since BuddyPress (1.6 )190 * @since BuddyPress (1.6.0) 191 191 */ 192 192 function bp_admin_setting_callback_bbpress_section() { } … … 195 195 * bb-config.php location field 196 196 * 197 * @since BuddyPress (1.6 )197 * @since BuddyPress (1.6.0) 198 198 * @uses checked() To display the checked attribute 199 199 * @uses bp_get_option() To get the config location … … 224 224 * The main settings page 225 225 * 226 * @since BuddyPress (1.6 )226 * @since BuddyPress (1.6.0) 227 227 * 228 228 * @uses screen_icon() To display the screen icon … … 261 261 * Save our settings 262 262 * 263 * @since BuddyPress (1.6 )263 * @since BuddyPress (1.6.0) 264 264 */ 265 265 function bp_core_admin_settings_save() { … … 307 307 * Output settings API option 308 308 * 309 * @since BuddyPress (1.6 )309 * @since BuddyPress (1.6.0) 310 310 * 311 311 * @uses bp_get_bp_form_option() … … 321 321 * Return settings API option 322 322 * 323 * @since BuddyPress (1.6 )323 * @since BuddyPress (1.6.0) 324 324 * 325 325 * @uses bp_get_option() … … 337 337 338 338 // Slug? 339 if ( true === $slug ) 339 if ( true === $slug ) { 340 341 /** 342 * Filters the slug value in the form field. 343 * 344 * @since BuddyPress (1.6.0) 345 * 346 * @param string $value Value being returned for the requested option. 347 */ 340 348 $value = esc_attr( apply_filters( 'editable_slug', $value ) ); 341 342 // Not a slug 343 else 349 } else { // Not a slug 344 350 $value = esc_attr( $value ); 351 } 345 352 346 353 // Fallback to default … … 348 355 $value = $default; 349 356 350 // Allow plugins to further filter the output 357 /** 358 * Filters the settings API option. 359 * 360 * @since BuddyPress (1.6.0) 361 * 362 * @param string $value Value being returned for the requested option. 363 * @param string $option Option whose value is being requested. 364 */ 351 365 return apply_filters( 'bp_get_form_option', $value, $option ); 352 366 }
Note: See TracChangeset
for help on using the changeset viewer.