Changeset 6573 for trunk/src/includes/users/functions.php
- Timestamp:
- 06/16/2017 09:20:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/users/functions.php
r6542 r6573 19 19 * @param string $raw_url Raw url 20 20 * @param object $user User object 21 * @uses is_wp_error() To check if the user param is a {@link WP_Error}22 * @uses admin_url() To get the admin url23 * @uses home_url() To get the home url24 * @uses esc_url() To escape the url25 * @uses bbp_redirect() To redirect26 21 */ 27 22 function bbp_redirect_login( $url = '', $raw_url = '', $user = '' ) { … … 49 44 * @since 2.0.0 bbPress (r2688) 50 45 * 51 * @uses is_user_logged_in() Is the user logged in?52 * @uses bbp_allow_anonymous() Is anonymous posting allowed?53 * @uses apply_filters() Calls 'bbp_is_anonymous' with the return value54 46 * @return bool True if anonymous is allowed and user is not logged in, false if 55 47 * anonymous is not allowed or user is logged in … … 68 60 * 69 61 * @param string $key Which value to echo? 70 * @uses bbp_get_current_anonymous_user_data() To get the current anonymous user71 * data72 62 */ 73 63 function bbp_current_anonymous_user_data( $key = '' ) { … … 82 72 * @param string $key Optional. Which value to get? If not given, then 83 73 * an array is returned. 84 * @uses sanitize_comment_cookies() To sanitize the current poster data85 * @uses wp_get_current_commenter() To get the current poster data *86 74 * @return string|array Cookie(s) for current poster 87 75 */ … … 126 114 * supply if supplying $author_id. Should be 127 115 * sanitized (see {@link bbp_filter_anonymous_post_data()} 128 * @uses apply_filters() Calls 'comment_cookie_lifetime' for cookie lifetime.129 * Defaults to 30000000.130 116 */ 131 117 function bbp_set_current_anonymous_user_data( $anonymous_data = array() ) { … … 193 179 * 194 180 * @param string $action The requested action to compare this function to 195 * @uses is_multisite() To check if it's a multisite196 * @uses bbp_is_user_home() To check if the user is at home (the display page197 * is the one of the logged in user)198 * @uses get_option() To get the displayed user's new email id option199 * @uses wp_update_user() To update the user200 * @uses delete_option() To delete the displayed user's email id option201 * @uses bbp_get_user_profile_edit_url() To get the edit profile url202 * @uses bbp_redirect() To redirect to the url203 * @uses bbp_verify_nonce_request() To verify the nonce and check the request204 * @uses current_user_can() To check if the current user can edit the user205 * @uses do_action() Calls 'personal_options_update' or206 * 'edit_user_options_update' (based on if it's the user home)207 * with the displayed user id208 * @uses edit_user() To edit the user based on the post data209 * @uses get_userdata() To get the user data210 * @uses is_email() To check if the string is an email id or not211 * @uses is_network_admin() To check if the user is the network admin212 * @uses revoke_super_admin() To revoke super admin privileges213 * @uses grant_super_admin() To grant super admin privileges214 * @uses is_wp_error() To check if the value retrieved is a {@link WP_Error}215 181 */ 216 182 function bbp_edit_user_handler( $action = '' ) { … … 332 298 * 333 299 * @param string $action 334 *335 * @uses bbp_is_user_home_edit() To check if on the current users profile edit page336 * @uses bbp_get_displayed_user_id() To get the ID of the user being edited337 * @uses bbp_get_user_profile_edit_url() To get the URL of the user being edited338 * @uses bbp_redirect() To redirect away from the current page339 * @uses hash_equals() To compare email hash to saved option hash340 * @uses email_exists() To check if user has email address already341 * @uses bbp_add_error() To add user feedback342 * @uses wp_update_user() To update the user with their new email address343 * @uses bbp_verify_nonce_request() To verify the intent of the user344 300 */ 345 301 function bbp_user_email_change_handler( $action = '' ) { … … 442 398 * 443 399 * @see send_confirmation_on_profile_email() 444 *445 * @uses bbp_parse_args() To parse the option arguments446 * @uses bbp_add_error() To provide feedback to user447 * @uses bbp_get_displayed_user_field() To get the user_login448 * @uses bbp_get_user_profile_edit_url() To get the user profile edit link449 * @uses add_query_arg() To add arguments the link450 * @uses wp_mail() To send the notification451 400 */ 452 401 function bbp_edit_user_email_send_notification( $user_id = 0, $args = array() ) { … … 522 471 * 523 472 * @since 2.2.0 bbPress (r4273) 524 *525 * @uses bbp_is_user_home_edit() To switch the action fired526 * @uses get_userdata() To get the current user's data527 * @uses bbp_get_displayed_user_id() To get the currently displayed user ID528 473 */ 529 474 function bbp_user_edit_after() { … … 541 486 * 542 487 * @param int $user_id Optional. User id 543 * @uses bbp_get_user_id() To get the topic id 544 * @uses bbp_has_topics() To get the topics created by the user 488 * 545 489 * @return array|bool Results if the user has created topics, otherwise false 546 490 */ … … 568 512 * 569 513 * @param int $user_id Optional. User id 570 * @uses bbp_get_user_id() To get the topic id 571 * @uses bbp_has_replies() To get the topics created by the user 514 * 572 515 * @return array|bool Results if the user has created topics, otherwise false 573 516 */ … … 674 617 * @param int $user_id User ID to get count for 675 618 * 676 * @uses bbp_get_user_id()677 * @uses get_posts_by_author_sql()678 * @uses bbp_get_topic_post_type()679 * @uses apply_filters()680 *681 619 * @return int Raw DB count of topics 682 620 */ … … 701 639 * 702 640 * @param int $user_id User ID to get count for 703 *704 * @uses bbp_get_user_id()705 * @uses get_posts_by_author_sql()706 * @uses bbp_get_reply_post_type()707 * @uses apply_filters()708 641 * 709 642 * @return int Raw DB count of replies … … 759 692 * @param int $user_id 760 693 * @param int $difference 761 * @uses bbp_get_user_topic_count() To get the users current topic count762 * @uses bbp_set_user_topic_count() To set the users new topic count763 694 */ 764 695 function bbp_bump_user_topic_count( $user_id = 0, $difference = 1 ) { … … 797 728 * @param int $user_id 798 729 * @param int $difference 799 * @uses bbp_get_user_reply_count() To get the users current reply count800 * @uses bbp_set_user_reply_count() To set the users new reply count801 730 */ 802 731 function bbp_bump_user_reply_count( $user_id = 0, $difference = 1 ) { … … 900 829 * 901 830 * @since 2.1.0 bbPress (r3605) 902 *903 * @uses bbp_is_single_user_edit()904 * @uses current_user_can()905 * @uses bbp_get_displayed_user_id()906 * @uses bbp_redirect()907 * @uses bbp_get_user_profile_url()908 831 */ 909 832 function bbp_check_user_edit() { … … 951 874 * 952 875 * @since 2.0.0 bbPress (r2996) 953 *954 * @uses is_user_logged_in() To check if user is logged in955 * @uses bbp_is_user_keymaster() To check if user is a keymaster956 * @uses current_user_can() To check if the current user can spectate957 * @uses is_bbpress() To check if in a bbPress section of the site958 * @uses bbp_set_404() To set a 404 status959 876 */ 960 877 function bbp_forum_enforce_blocked() {
Note: See TracChangeset
for help on using the changeset viewer.