Changeset 9215
- Timestamp:
- 12/06/2014 09:19:03 PM (6 years ago)
- Location:
- trunk/src/bp-settings
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/bp-settings-actions.php
r9198 r9215 129 129 * @since BuddyPress (2.1.0) 130 130 * 131 * @param string $email_textText of the email.132 * @param string $new_user_email New user email that133 * thecurrent user has changed to.134 * @param string $old_user_email Existing email addres135 * for the current user.136 * @param object $update_user Userdatafor the current user.131 * @param string $email_text Text of the email. 132 * @param string $new_user_email New user email that the 133 * current user has changed to. 134 * @param string $old_user_email Existing email address 135 * for the current user. 136 * @param WP_User $update_user Userdata object for the current user. 137 137 */ 138 138 $content = apply_filters( 'bp_new_user_email_content', $email_text, $user_email, $old_user_email, $update_user ); … … 258 258 bp_core_add_message( implode( '</p><p>', $feedback ), $feedback_type ); 259 259 260 // Execute additional code 260 /** 261 * Fires after the general settings have been saved, and before redirect. 262 * 263 * @since BuddyPress (1.5.0) 264 */ 261 265 do_action( 'bp_core_general_settings_after_save' ); 262 266 … … 304 308 } 305 309 310 /** 311 * Fires after the notificaton settings have been saved, and before redirect. 312 * 313 * @since BuddyPress (1.5.0) 314 */ 306 315 do_action( 'bp_core_notification_settings_after_save' ); 307 316 … … 342 351 check_admin_referer( 'capabilities' ); 343 352 353 /** 354 * Fires before the capabilities settings have been saved. 355 * 356 * @since BuddyPress (1.6.0) 357 */ 344 358 do_action( 'bp_settings_capabilities_before_save' ); 345 359 … … 351 365 $status = ( true == $is_spammer ) ? 'spam' : 'ham'; 352 366 bp_core_process_spammer_status( bp_displayed_user_id(), $status ); 367 368 /** 369 * Fires after processing a user as a spammer. 370 * 371 * @since BuddyPress (1.1.0) 372 * 373 * @param int $value ID of the currently displayed user. 374 * @param string $status Determined status of "spam" or "ham" for the displayed user. 375 */ 353 376 do_action( 'bp_core_action_set_spammer_status', bp_displayed_user_id(), $status ); 354 377 } … … 356 379 /** Other *************************************************************/ 357 380 381 /** 382 * Fires after the capabilities settings have been saved and before redirect. 383 * 384 * @since BuddyPress (1.6.0) 385 */ 358 386 do_action( 'bp_settings_capabilities_after_save' ); 359 387 -
trunk/src/bp-settings/bp-settings-loader.php
r9128 r9215 16 16 * Start the settings component creation process 17 17 * 18 * @since BuddyPress (1.5 )18 * @since BuddyPress (1.5.0) 19 19 */ 20 20 public function __construct() { … … 49 49 * backwards compatibility. 50 50 * 51 * @since BuddyPress (1.5 )51 * @since BuddyPress (1.5.0) 52 52 */ 53 53 public function setup_globals( $args = array() ) { -
trunk/src/bp-settings/bp-settings-screens.php
r7228 r9215 14 14 * Show the general settings template 15 15 * 16 * @since BuddyPress (1.5 )16 * @since BuddyPress (1.5.0) 17 17 */ 18 18 function bp_settings_screen_general() { … … 23 23 } 24 24 25 /** 26 * Filters the template file path to use for the general settings screen. 27 * 28 * @since BuddyPress (1.6.0) 29 * 30 * @param string $value Directory path to look in for the template file. 31 */ 25 32 bp_core_load_template( apply_filters( 'bp_settings_screen_general_settings', 'members/single/settings/general' ) ); 26 33 } … … 29 36 * Show the notifications settings template 30 37 * 31 * @since BuddyPress (1.5 )38 * @since BuddyPress (1.5.0) 32 39 */ 33 40 function bp_settings_screen_notification() { … … 38 45 } 39 46 47 /** 48 * Filters the template file path to use for the notification settings screen. 49 * 50 * @since BuddyPress (1.6.0) 51 * 52 * @param string $value Directory path to look in for the template file. 53 */ 40 54 bp_core_load_template( apply_filters( 'bp_settings_screen_notification_settings', 'members/single/settings/notifications' ) ); 41 55 } … … 44 58 * Show the delete-account settings template 45 59 * 46 * @since BuddyPress (1.5 )60 * @since BuddyPress (1.5.0) 47 61 */ 48 62 function bp_settings_screen_delete_account() { … … 53 67 } 54 68 55 // Load the template 69 /** 70 * Filters the template file path to use for the delete-account settings screen. 71 * 72 * @since BuddyPress (1.6.0) 73 * 74 * @param string $value Directory path to look in for the template file. 75 */ 56 76 bp_core_load_template( apply_filters( 'bp_settings_screen_delete_account', 'members/single/settings/delete-account' ) ); 57 77 } … … 60 80 * Show the capabilities settings template 61 81 * 62 * @since BuddyPress (1.6 )82 * @since BuddyPress (1.6.0) 63 83 */ 64 84 function bp_settings_screen_capabilities() { … … 69 89 } 70 90 71 // Load the template 91 /** 92 * Filters the template file path to use for the capabilities settings screen. 93 * 94 * @since BuddyPress (1.6.0) 95 * 96 * @param string $value Directory path to look in for the template file. 97 */ 72 98 bp_core_load_template( apply_filters( 'bp_settings_screen_capabilities', 'members/single/settings/capabilities' ) ); 73 99 } -
trunk/src/bp-settings/bp-settings-template.php
r8560 r9215 16 16 * @package BuddyPress 17 17 * @subpackage SettingsTemplate 18 * @since BuddyPress (1.5 )18 * @since BuddyPress (1.5.0) 19 19 * 20 20 * @uses bp_get_settings_slug() … … 28 28 * @package BuddyPress 29 29 * @subpackage SettingsTemplate 30 * @since BuddyPress (1.5 )30 * @since BuddyPress (1.5.0) 31 31 */ 32 32 function bp_get_settings_slug() { 33 34 /** 35 * Filters the Settings component slug. 36 * 37 * @since BuddyPress (1.5.0) 38 * 39 * @param string $slug Settings component slug. 40 */ 33 41 return apply_filters( 'bp_get_settings_slug', buddypress()->settings->slug ); 34 42 } … … 39 47 * @package BuddyPress 40 48 * @subpackage SettingsTemplate 41 * @since BuddyPress (1.5 )49 * @since BuddyPress (1.5.0) 42 50 * 43 51 * @uses bp_get_settings_root_slug() … … 51 59 * @package BuddyPress 52 60 * @subpackage SettingsTemplate 53 * @since BuddyPress (1.5 )61 * @since BuddyPress (1.5.0) 54 62 */ 55 63 function bp_get_settings_root_slug() { 64 65 /** 66 * Filters the Settings component root slug. 67 * 68 * @since BuddyPress (1.5.0) 69 * 70 * @param string $root_slug Settings component root slug. 71 */ 56 72 return apply_filters( 'bp_get_settings_root_slug', buddypress()->settings->root_slug ); 57 73 }
Note: See TracChangeset
for help on using the changeset viewer.