Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/16/2017 09:20:52 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Documentation: Remove all @uses usages.

Per the WordPress inline documentation standards:

the @uses tag is not recommended to be used to indicate a used-by relationship, as this information can be derived through other means. These tags also are very likely to become out-of-date as our functions change over time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/users/functions.php

    r6542 r6573  
    1919 * @param string $raw_url Raw url
    2020 * @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 url
    23  * @uses home_url() To get the home url
    24  * @uses esc_url() To escape the url
    25  * @uses bbp_redirect() To redirect
    2621 */
    2722function bbp_redirect_login( $url = '', $raw_url = '', $user = '' ) {
     
    4944 * @since 2.0.0 bbPress (r2688)
    5045 *
    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 value
    5446 * @return bool True if anonymous is allowed and user is not logged in, false if
    5547 *               anonymous is not allowed or user is logged in
     
    6860 *
    6961 * @param string $key Which value to echo?
    70  * @uses bbp_get_current_anonymous_user_data() To get the current anonymous user
    71  *                                              data
    7262 */
    7363function bbp_current_anonymous_user_data( $key = '' ) {
     
    8272     * @param string $key Optional. Which value to get? If not given, then
    8373     *                     an array is returned.
    84      * @uses sanitize_comment_cookies() To sanitize the current poster data
    85      * @uses wp_get_current_commenter() To get the current poster data   *
    8674     * @return string|array Cookie(s) for current poster
    8775     */
     
    126114 *                              supply if supplying $author_id. Should be
    127115 *                              sanitized (see {@link bbp_filter_anonymous_post_data()}
    128  * @uses apply_filters() Calls 'comment_cookie_lifetime' for cookie lifetime.
    129  *                        Defaults to 30000000.
    130116 */
    131117function bbp_set_current_anonymous_user_data( $anonymous_data = array() ) {
     
    193179 *
    194180 * @param string $action The requested action to compare this function to
    195  * @uses is_multisite() To check if it's a multisite
    196  * @uses bbp_is_user_home() To check if the user is at home (the display page
    197  *                           is the one of the logged in user)
    198  * @uses get_option() To get the displayed user's new email id option
    199  * @uses wp_update_user() To update the user
    200  * @uses delete_option() To delete the displayed user's email id option
    201  * @uses bbp_get_user_profile_edit_url() To get the edit profile url
    202  * @uses bbp_redirect() To redirect to the url
    203  * @uses bbp_verify_nonce_request() To verify the nonce and check the request
    204  * @uses current_user_can() To check if the current user can edit the user
    205  * @uses do_action() Calls 'personal_options_update' or
    206  *                   'edit_user_options_update' (based on if it's the user home)
    207  *                   with the displayed user id
    208  * @uses edit_user() To edit the user based on the post data
    209  * @uses get_userdata() To get the user data
    210  * @uses is_email() To check if the string is an email id or not
    211  * @uses is_network_admin() To check if the user is the network admin
    212  * @uses revoke_super_admin() To revoke super admin privileges
    213  * @uses grant_super_admin() To grant super admin privileges
    214  * @uses is_wp_error() To check if the value retrieved is a {@link WP_Error}
    215181 */
    216182function bbp_edit_user_handler( $action = '' ) {
     
    332298 *
    333299 * @param string $action
    334  *
    335  * @uses bbp_is_user_home_edit()         To check if on the current users profile edit page
    336  * @uses bbp_get_displayed_user_id()     To get the ID of the user being edited
    337  * @uses bbp_get_user_profile_edit_url() To get the URL of the user being edited
    338  * @uses bbp_redirect()                  To redirect away from the current page
    339  * @uses hash_equals()                   To compare email hash to saved option hash
    340  * @uses email_exists()                  To check if user has email address already
    341  * @uses bbp_add_error()                 To add user feedback
    342  * @uses wp_update_user()                To update the user with their new email address
    343  * @uses bbp_verify_nonce_request()      To verify the intent of the user
    344300 */
    345301function bbp_user_email_change_handler( $action = '' ) {
     
    442398 *
    443399 * @see send_confirmation_on_profile_email()
    444  *
    445  * @uses bbp_parse_args()                To parse the option arguments
    446  * @uses bbp_add_error()                 To provide feedback to user
    447  * @uses bbp_get_displayed_user_field()  To get the user_login
    448  * @uses bbp_get_user_profile_edit_url() To get the user profile edit link
    449  * @uses add_query_arg()                 To add arguments the link
    450  * @uses wp_mail()                       To send the notification
    451400 */
    452401function bbp_edit_user_email_send_notification( $user_id = 0, $args = array() ) {
     
    522471 *
    523472 * @since 2.2.0 bbPress (r4273)
    524  *
    525  * @uses bbp_is_user_home_edit() To switch the action fired
    526  * @uses get_userdata() To get the current user's data
    527  * @uses bbp_get_displayed_user_id() To get the currently displayed user ID
    528473 */
    529474function bbp_user_edit_after() {
     
    541486 *
    542487 * @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 *
    545489 * @return array|bool Results if the user has created topics, otherwise false
    546490 */
     
    568512 *
    569513 * @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 *
    572515 * @return array|bool Results if the user has created topics, otherwise false
    573516 */
     
    674617 * @param int $user_id User ID to get count for
    675618 *
    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  *
    681619 * @return int Raw DB count of topics
    682620 */
     
    701639 *
    702640 * @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()
    708641 *
    709642 * @return int Raw DB count of replies
     
    759692 * @param int $user_id
    760693 * @param int $difference
    761  * @uses bbp_get_user_topic_count() To get the users current topic count
    762  * @uses bbp_set_user_topic_count() To set the users new topic count
    763694 */
    764695function bbp_bump_user_topic_count( $user_id = 0, $difference = 1 ) {
     
    797728 * @param int $user_id
    798729 * @param int $difference
    799  * @uses bbp_get_user_reply_count() To get the users current reply count
    800  * @uses bbp_set_user_reply_count() To set the users new reply count
    801730 */
    802731function bbp_bump_user_reply_count( $user_id = 0, $difference = 1 ) {
     
    900829 *
    901830 * @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()
    908831 */
    909832function bbp_check_user_edit() {
     
    951874 *
    952875 * @since 2.0.0 bbPress (r2996)
    953  *
    954  * @uses is_user_logged_in() To check if user is logged in
    955  * @uses bbp_is_user_keymaster() To check if user is a keymaster
    956  * @uses current_user_can() To check if the current user can spectate
    957  * @uses is_bbpress() To check if in a bbPress section of the site
    958  * @uses bbp_set_404() To set a 404 status
    959876 */
    960877function bbp_forum_enforce_blocked() {
Note: See TracChangeset for help on using the changeset viewer.