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/template.php

    r6568 r6573  
    170170 *
    171171 * @param array $args All the arguments supported by {@link WP_User_Query}
    172  * @uses BBP_User_Query To make query and get the users
    173  * @uses apply_filters() Calls 'bbp_has_users' with
    174  *                        bbPress::user_query::have_users()
    175  *                        and bbPress::user_query
    176172 * @return object Multidimensional array of user information
    177173 */
     
    200196 * @since 2.6.0 bbPress (r2464)
    201197 *
    202  * @uses bbPress:user_query::have_users() To check if there are more users
    203  *                                          available
    204198 * @return object User information
    205199 */
     
    213207 * @since 2.6.0 bbPress (r2464)
    214208 *
    215  * @uses bbPress:user_query::the_user() To get the current user
    216209 * @return object User information
    217210 */
     
    230223 * @param bool $displayed_user_fallback Fallback on displayed user?
    231224 * @param bool $current_user_fallback Fallback on current user?
    232  * @uses bbp_get_user_id() To get the user id
    233225 */
    234226function bbp_user_id( $user_id = 0, $displayed_user_fallback = true, $current_user_fallback = false ) {
     
    243235     * @param bool $displayed_user_fallback Fallback on displayed user?
    244236     * @param bool $current_user_fallback Fallback on current user?
    245      * @uses get_query_var() To get the 'bbp_user_id' query var
    246      * @uses apply_filters() Calls 'bbp_get_user_id' with the user id
    247237     * @return int Validated user id
    248238     */
     
    279269 *
    280270 * @since 2.0.0 bbPress (r2574)
    281  *
    282  * @uses bbp_get_current_user_id() To get the current user id
    283271 */
    284272function bbp_current_user_id() {
     
    290278     * @since 2.0.0 bbPress (r2574)
    291279     *
    292      * @uses bbp_get_user_id() To get the current user id
    293      * @uses apply_filters() Calls 'bbp_get_current_user_id' with the id
    294280     * @return int Current user id
    295281     */
     
    304290 *
    305291 * @since 2.0.0 bbPress (r2688)
    306  *
    307  * @uses bbp_get_displayed_user_id() To get the displayed user id
    308292 */
    309293function bbp_displayed_user_id() {
     
    315299     * @since 2.0.0 bbPress (r2688)
    316300     *
    317      * @uses bbp_get_user_id() To get the displayed user id
    318      * @uses apply_filters() Calls 'bbp_get_displayed_user_id' with the id
    319301     * @return int Displayed user id
    320302     */
     
    336318 * @param string $field Field to get
    337319 * @param string $filter How to filter the field value (null|raw|db|display|edit)
    338  * @uses bbp_get_displayed_user_field() To get the field
    339320 */
    340321function bbp_displayed_user_field( $field = '', $filter = 'display' ) {
     
    354335     * @see WP_User::__get() for more on how the value is retrieved
    355336     * @see sanitize_user_field() for more on how the value is sanitized
    356      * @uses apply_filters() Calls 'bbp_get_displayed_user_field' with the value
    357337     * @return string|bool Value of the field if it exists, else false
    358338     */
     
    382362 *
    383363 * @since 2.0.0 bbPress (r2574)
    384  *
    385  * @uses bbp_get_current_user_name() To get the current user name
    386364 */
    387365function bbp_current_user_name() {
     
    415393 *
    416394 * @param int $size Size of the avatar. Defaults to 40
    417  * @uses bbp_get_current_user_avatar() To get the current user avatar
    418395 */
    419396function bbp_current_user_avatar( $size = 40 ) {
     
    427404     *
    428405     * @param int $size Size of the avatar. Defaults to 40
    429      * @uses bbp_get_current_user_id() To get the current user id
    430      * @uses bbp_get_current_anonymous_user_data() To get the current
    431      *                                              anonymous user's email
    432      * @uses get_avatar() To get the avatar
    433      * @uses apply_filters() Calls 'bbp_get_current_user_avatar' with the
    434      *                        avatar and size
    435406     * @return string Current user avatar
    436407     */
     
    454425 *
    455426 * @param int $user_id Optional. User id
    456  * @uses bbp_get_user_profile_link() To get user profile link
    457427 */
    458428function bbp_user_profile_link( $user_id = 0 ) {
     
    465435     *
    466436     * @param int $user_id Optional. User id
    467      * @uses bbp_get_user_id() To get user id
    468      * @uses get_userdata() To get user data
    469      * @uses bbp_get_user_profile_url() To get user profile url
    470      * @uses apply_filters() Calls 'bbp_get_user_profile_link' with the user
    471      *                        profile link and user id
    472437     * @return string User profile link
    473438     */
     
    549514 * @param int $user_id Optional. User id
    550515 * @param string $user_nicename Optional. User nicename
    551  * @uses bbp_get_user_profile_url() To get user profile url
    552516 */
    553517function bbp_user_profile_url( $user_id = 0, $user_nicename = '' ) {
     
    561525     * @param int $user_id Optional. User id
    562526     * @param string $user_nicename Optional. User nicename
    563      * @uses bbp_get_user_id() To get user id
    564      * @uses bbp_use_pretty_urls() To check if the site is using pretty URLs
    565      * @uses add_query_arg() To add custom args to the url
    566      * @uses home_url() To get blog home url
    567      * @uses apply_filters() Calls 'bbp_get_user_profile_url' with the user
    568      *                        profile url, user id and user nicename
    569527     * @return string User profile url
    570528     */
     
    612570 *
    613571 * @param int $user_id Optional. User id
    614  * @uses bbp_get_user_profile_edit_link() To get user profile edit link
    615572 */
    616573function bbp_user_profile_edit_link( $user_id = 0 ) {
     
    623580     *
    624581     * @param int $user_id Optional. User id
    625      * @uses bbp_get_user_id() To get user id
    626      * @uses get_userdata() To get user data
    627      * @uses bbp_get_user_profile_edit_url() To get user profile edit url
    628      * @uses apply_filters() Calls 'bbp_get_user_profile_link' with the edit
    629      *                        link and user id
    630582     * @return string User profile edit link
    631583     */
     
    652604 * @param int $user_id Optional. User id
    653605 * @param string $user_nicename Optional. User nicename
    654  * @uses bbp_get_user_profile_edit_url() To get user profile edit url
    655606 */
    656607function bbp_user_profile_edit_url( $user_id = 0, $user_nicename = '' ) {
     
    664615     * @param int $user_id Optional. User id
    665616     * @param string $user_nicename Optional. User nicename
    666      * @uses bbp_get_user_id() To get user id
    667      * @uses bbp_get_user_profile_url() To get the user profile url
    668      * @uses bbp_use_pretty_urls() To check if the site is using pretty URLs
    669      * @uses add_query_arg() To add custom args to the url
    670      * @uses home_url() To get blog home url
    671      * @uses apply_filters() Calls 'bbp_get_user_edit_profile_url' with the
    672      *                        edit profile url, user id and user nicename
    673617     * @return string
    674618     */
     
    711655 *
    712656 * @param int $user_id
    713  * @uses bbp_get_user_display_role To get the user display role
    714657 */
    715658function bbp_user_display_role( $user_id = 0 ) {
     
    722665     *
    723666     * @param int $user_id
    724      * @uses bbp_get_user_id() to verify the user ID
    725      * @uses bbp_is_user_inactive() to check if user is inactive
    726      * @uses user_can() to check if user has special capabilities
    727667     * @return string
    728668     */
     
    761701 *
    762702 * @param array $args Optional. See {@link bbp_get_admin_link()}
    763  * @uses bbp_get_admin_link() To get the admin link
    764703 */
    765704function bbp_admin_link( $args = array() ) {
     
    775714     *  - before: Before the lnk
    776715     *  - after: After the link
    777      * @uses current_user_can() To check if the current user can moderate
    778      * @uses admin_url() To get the admin url
    779      * @uses apply_filters() Calls 'bbp_get_admin_link' with the link & args
    780716     * @return The link
    781717     */
     
    812748 *
    813749 * @param array $args Optional. If it is an integer, it is used as post id.
    814  * @uses bbp_get_author_ip() To get the post author link
    815750 */
    816751function bbp_author_ip( $args = array() ) {
     
    823758     *
    824759     * @param array $args Optional. If an integer, it is used as reply id.
    825      * @uses get_post_meta() To check if it's a topic page
    826760     * @return string Author link of reply
    827761     */
     
    879813 *
    880814 * @param int $post_id
    881  * @uses bbp_get_author_display_name() to get the author name
    882815 */
    883816function bbp_author_display_name( $post_id = 0 ) {
     
    896829     * @param int $post_id
    897830     *
    898      * @uses bbp_is_topic_edit()
    899      * @uses bbp_get_topic_author_display_name()
    900      * @uses bbp_is_reply_edit()
    901      * @uses bbp_get_reply_author_display_name()
    902      * @uses bbp_current_anonymous_user_data()
    903      *
    904831     * @return string The name of the author
    905832     */
     
    936863 *
    937864 * @param int $post_id
    938  * @uses bbp_get_author_email() to get the author email
    939865 */
    940866function bbp_author_email( $post_id = 0 ) {
     
    953879     * @param int $post_id
    954880     *
    955      * @uses bbp_is_topic_edit()
    956      * @uses bbp_get_topic_author_email()
    957      * @uses bbp_is_reply_edit()
    958      * @uses bbp_get_reply_author_email()
    959      * @uses bbp_current_anonymous_user_data()
    960      *
    961881     * @return string The email of the author
    962882     */
     
    993913 *
    994914 * @param int $post_id
    995  * @uses bbp_get_author_url() to get the author url
    996915 */
    997916function bbp_author_url( $post_id = 0 ) {
     
    1010929     * @param int $post_id
    1011930     *
    1012      * @uses bbp_is_topic_edit()
    1013      * @uses bbp_get_topic_author_url()
    1014      * @uses bbp_is_reply_edit()
    1015      * @uses bbp_get_reply_author_url()
    1016      * @uses bbp_current_anonymous_user_data()
    1017      *
    1018931     * @return string The url of the author
    1019932     */
     
    1049962 *
    1050963 * @param int $user_id Optional. User id
    1051  * @uses bbp_get_favorites_permalink() To get the favorites permalink
    1052964 */
    1053965function bbp_favorites_permalink( $user_id = 0 ) {
     
    1061973     *
    1062974     * @param int $user_id Optional. User id
    1063      * @uses bbp_get_user_profile_url() To get the user profile url
    1064      * @uses apply_filters() Calls 'bbp_get_favorites_permalink' with the
    1065      *                        user profile url and user id
    1066975     * @return string Permanent link to user profile page
    1067976     */
     
    11291038 * @param int $user_id Optional. User id
    11301039 * @param bool $wrap Optional. If you want to wrap the link in <span id="favorite-toggle">.
    1131  * @uses bbp_get_user_favorites_link() To get the user favorites link
    11321040 */
    11331041function bbp_user_favorites_link( $args = array(), $user_id = 0, $wrap = true ) {
     
    11531061     * @param int $topic_id Optional. Topic id
    11541062     * @param bool $wrap Optional. If you want to wrap the link in <span id="favorite-toggle">. See ajax_favorite()
    1155      * @uses bbp_get_user_id() To get the user id
    1156      * @uses current_user_can() If the current user can edit the user
    1157      * @uses bbp_get_topic_id() To get the topic id
    1158      * @uses bbp_is_user_favorite() To check if the topic is user's favorite
    1159      * @uses bbp_get_favorites_permalink() To get the favorites permalink
    1160      * @uses bbp_get_topic_permalink() To get the topic permalink
    1161      * @uses bbp_is_favorites() Is it the favorites page?
    1162      * @uses apply_filters() Calls 'bbp_get_user_favorites_link' with the
    1163      *                        html, add args, remove args, user & topic id
    11641063     * @return string User favorites link
    11651064     */
     
    12541153 *
    12551154 * @param int $user_id Optional. User id
    1256  * @uses bbp_get_subscriptions_permalink() To get the subscriptions link
    12571155 */
    12581156function bbp_subscriptions_permalink( $user_id = 0 ) {
     
    12661164     *
    12671165     * @param int $user_id Optional. User id
    1268      * @uses bbp_get_user_profile_url() To get the user profile url
    1269      * @uses apply_filters() Calls 'bbp_get_subscriptions_permalink' with
    1270      *                        the user profile url and user id
    12711166     * @return string Permanent link to user subscriptions page
    12721167     */
     
    13441239 * @param int $user_id Optional. User id
    13451240 * @param bool $wrap Optional. If you want to wrap the link in <span id="subscription-toggle">.
    1346  * @uses bbp_get_user_subscribe_link() To get the subscribe link
    13471241 */
    13481242function bbp_user_subscribe_link( $args = array(), $user_id = 0, $wrap = true ) {
     
    13651259     * @param int $user_id Optional. User id
    13661260     * @param bool $wrap Optional. If you want to wrap the link in <span id="subscription-toggle">.
    1367      * @uses bbp_is_subscriptions_active() to check if subscriptions are active
    1368      * @uses bbp_get_user_id() To get the user id
    1369      * @uses bbp_get_user_id() To get the user id
    1370      * @uses bbp_get_topic_id() To get the topic id
    1371      * @uses bbp_get_forum_id() To get the forum id
    1372      * @uses current_user_can() To check if the current user can edit user
    1373      * @uses bbp_is_user_subscribed() To check if the user is subscribed
    1374      * @uses bbp_is_subscriptions() To check if it's the subscriptions page
    1375      * @uses bbp_get_subscriptions_permalink() To get subscriptions link
    1376      * @uses bbp_get_topic_permalink() To get topic link
    1377      * @uses apply_filters() Calls 'bbp_get_user_subscribe_link' with the
    1378      *                        link, args, user id & topic id
    13791261     * @return string Permanent link to topic
    13801262     */
     
    14691351 *
    14701352 * @since 2.0.0 bbPress (r2688)
    1471  *
    1472  * @uses bbp_is_single_user() To check if it's the profile page
    1473  * @uses bbp_is_single_user_edit() To check if it's the profile edit page
    14741353 */
    14751354function bbp_notice_edit_user_success() {
     
    14981377 *
    14991378 * @since 2.6.0 bbPress (r5660)
    1500  *
    1501  * @uses bbp_get_displayed_user_id()     To get the displayed user ID
    1502  * @uses bbp_is_user_home_edit()         To check if it's the profile edit page
    1503  * @uses bbp_get_user_profile_edit_url() To get the displayed user profile edit URL
    1504  * @uses add_query_arg()                 To add dismiss query argument to URL
    1505  * @uses wp_nonce_url()                  To add nonce to URL
    15061379 */
    15071380function bbp_notice_edit_user_pending_email() {
     
    15481421 *
    15491422 * @since 2.0.0 bbPress (r2688)
    1550  *
    1551  * @uses is_multisite() To check if the blog is multisite
    1552  * @uses bbp_is_single_user() To check if it's the profile page
    1553  * @uses bbp_is_single_user_edit() To check if it's the profile edit page
    1554  * @uses current_user_can() To check if the current user can manage network
    1555  *                           options
    1556  * @uses bbp_get_displayed_user_id() To get the displayed user id
    1557  * @uses is_super_admin() To check if the user is super admin
    1558  * @uses bbp_is_user_home() To check if it's the user home
    1559  * @uses bbp_is_user_home_edit() To check if it's the user home edit
    15601423 */
    15611424function bbp_notice_edit_user_is_super_admin() {
     
    16921555 *
    16931556 * @since 2.0.0 bbPress (r2688)
    1694  *
    1695  * @uses wp_get_user_contact_methods() To get the contact methods
    1696  * @uses apply_filters() Calls 'bbp_edit_user_contact_methods' with the methods
    16971557 * @return string User contact methods
    16981558 */
     
    17331593 *
    17341594 * @param int $user_id Optional. User id
    1735  * @uses bbp_get_user_topics_created_url() To get the favorites permalink
    17361595 */
    17371596function bbp_user_topics_created_url( $user_id = 0 ) {
     
    17441603     *
    17451604     * @param int $user_id Optional. User id
    1746      * @uses bbp_get_user_profile_url() To get the user profile url
    1747      * @uses apply_filters() Calls 'bbp_get_user_topics_created_url' with the
    1748      *                        user profile url and user id
    17491605     * @return string Permanent link to user profile page
    17501606     */
     
    17901646 *
    17911647 * @param int $user_id Optional. User id
    1792  * @uses bbp_get_user_replies_created_url() To get the favorites permalink
    17931648 */
    17941649function bbp_user_replies_created_url( $user_id = 0 ) {
     
    18011656     *
    18021657     * @param int $user_id Optional. User id
    1803      * @uses bbp_get_user_profile_url() To get the user profile url
    1804      * @uses apply_filters() Calls 'bbp_get_user_replies_created_url' with the
    1805      *                        user profile url and user id
    18061658     * @return string Permanent link to user profile page
    18071659     */
     
    18471699 *
    18481700 * @param int $user_id Optional. User id
    1849  * @uses bbp_get_user_engagements_url() To get the engagements permalink
    18501701 */
    18511702function bbp_user_engagements_url( $user_id = 0 ) {
     
    18581709     *
    18591710     * @param int $user_id Optional. User id
    1860      * @uses bbp_get_user_profile_url() To get the user profile url
    1861      * @uses apply_filters() Calls 'bbp_get_user_engagements_url' with the
    1862      *                        user profile url and user id
    18631711     * @return string Permanent link to user profile page
    18641712     */
     
    19681816 *
    19691817 * @since 2.0.0 bbPress (r2970)
    1970  *
    1971  * @uses WP_Error bbPress::errors::add() To add an error or message
    19721818 */
    19731819function bbp_login_notices() {
     
    20131859 *
    20141860 * @param string $url The URL to redirect to
    2015  * @uses is_user_logged_in() Check if user is logged in
    2016  * @uses bbp_redirect() To safely redirect
    2017  * @uses bbp_get_user_profile_url() To get the profile url of the user
    2018  * @uses bbp_get_current_user_id() To get the current user id
    20191861 */
    20201862function bbp_logged_in_redirect( $url = '' ) {
     
    20361878 *
    20371879 * @since 2.0.0 bbPress (r2815)
    2038  *
    2039  * @uses apply_filters() To allow custom redirection
    2040  * @uses bbp_redirect_to_field() To output the hidden request url field
    2041  * @uses wp_nonce_field() To generate hidden nonce fields
    20421880 */
    20431881function bbp_user_login_fields() {
     
    20621900 *
    20631901 * @since 2.0.0 bbPress (r2815)
    2064  *
    2065  * @uses add_query_arg() To add query args
    2066  * @uses bbp_login_url() To get the login url
    2067  * @uses apply_filters() To allow custom redirection
    2068  * @uses bbp_redirect_to_field() To output the redirect to field
    2069  * @uses wp_nonce_field() To generate hidden nonce fields
    20701902 */
    20711903function bbp_user_register_fields() {
     
    20911923 *
    20921924 * @since 2.0.0 bbPress (r2815)
    2093  *
    2094  * @uses apply_filters() To allow custom redirection
    2095  * @uses bbp_redirect_to_field() Set referer
    2096  * @uses wp_nonce_field() To generate hidden nonce fields
    20971925 */
    20981926function bbp_user_lost_pass_fields() {
     
    21191947 *
    21201948 * @param array $args Optional. If it is an integer, it is used as post id.
    2121  * @uses bbp_get_author_link() To get the post author link
    21221949 */
    21231950function bbp_author_link( $args = array() ) {
     
    21301957     *
    21311958     * @param array $args Optional. If an integer, it is used as reply id.
    2132      * @uses bbp_is_topic() To check if it's a topic page
    2133      * @uses bbp_get_topic_author_link() To get the topic author link
    2134      * @uses bbp_is_reply() To check if it's a reply page
    2135      * @uses bbp_get_reply_author_link() To get the reply author link
    2136      * @uses get_post_field() To get the post author
    2137      * @uses bbp_is_reply_anonymous() To check if the reply is by an
    2138      *                                 anonymous user
    2139      * @uses get_the_author_meta() To get the author name
    2140      * @uses bbp_get_user_profile_url() To get the author profile url
    2141      * @uses get_avatar() To get the author avatar
    2142      * @uses apply_filters() Calls 'bbp_get_reply_author_link' with the
    2143      *                        author link and args
    21441959     * @return string Author link of reply
    21451960     */
     
    22282043 * @since 2.0.0 bbPress (r3127)
    22292044 *
    2230  * @uses bbp_get_current_user_id()
    2231  * @uses bbp_get_forum_id()
    2232  * @uses bbp_allow_anonymous()
    2233  * @uses bbp_parse_args()
    2234  * @uses bbp_get_user_id()
    2235  * @uses current_user_can()
    2236  * @uses bbp_is_user_keymaster()
    2237  * @uses bbp_is_forum_public()
    2238  * @uses bbp_is_forum_private()
    2239  * @uses bbp_is_forum_hidden()
    2240  * @uses current_user_can()
    2241  * @uses apply_filters()
    2242  *
    22432045 * @return bool
    22442046 */
     
    22832085 * @since 2.0.0 bbPress (r3127)
    22842086 *
    2285  * @uses bbp_is_user_keymaster()
    2286  * @uses is_user_logged_in()
    2287  * @uses bbp_allow_anonymous()
    2288  * @uses bbp_is_user_active()
    2289  * @uses current_user_can()
    2290  * @uses apply_filters()
    2291  *
    22922087 * @return bool
    22932088 */
     
    23192114 * @since 2.1.0 bbPress (r3549)
    23202115 *
    2321  * @uses bbp_is_user_keymaster()
    2322  * @uses bbp_is_user_active()
    2323  * @uses current_user_can()
    2324  * @uses apply_filters()
    2325  *
    23262116 * @return bool
    23272117 */
     
    23492139 * @since 2.0.0 bbPress (r3127)
    23502140 *
    2351  * @uses bbp_is_user_keymaster()
    2352  * @uses is_user_logged_in()
    2353  * @uses bbp_allow_anonymous()
    2354  * @uses bbp_is_user_active()
    2355  * @uses current_user_can()
    2356  * @uses apply_filters()
    2357  *
    23582141 * @return bool
    23592142 */
     
    23922175 *
    23932176 * @since 2.0.0 bbPress (r3127)
    2394  *
    2395  * @uses bbp_get_forum_post_type()
    2396  * @uses get_posts()
    23972177 *
    23982178 * @param type $args
     
    24262206 * @since 2.1.0 bbPress (r3549)
    24272207 *
    2428  * @uses bbp_is_user_keymaster()
    2429  * @uses bbp_is_forum_edit()
    2430  * @uses current_user_can()
    2431  * @uses bbp_get_forum_id()
    2432  *
    24332208 * @return bool
    24342209 */
     
    24602235 * @since 2.0.0 bbPress (r3127)
    24612236 *
    2462  * @uses bbp_is_user_keymaster()
    2463  * @uses bbp_is_topic_edit()
    2464  * @uses current_user_can()
    2465  * @uses bbp_get_topic_id()
    2466  * @uses bbp_allow_anonymous()
    2467  * @uses is_user_logged_in()
    2468  *
    24692237 * @return bool
    24702238 */
     
    24962264 * @since 2.0.0 bbPress (r3127)
    24972265 *
    2498  * @uses bbp_is_user_keymaster()
    2499  * @uses bbp_is_topic_edit()
    2500  * @uses current_user_can()
    2501  * @uses bbp_get_topic_id()
    2502  * @uses bbp_allow_anonymous()
    2503  * @uses is_user_logged_in()
    2504  *
    25052266 * @return bool
    25062267 */
     
    25332294 * @since 2.5.0 bbPress (r5119)
    25342295 *
    2535  * @uses bbp_is_anonymous()
    2536  * @uses bbp_is_topic_edit()
    2537  * @uses bbp_is_topic_anonymous()
    2538  * @uses bbp_is_reply_edit()
    2539  * @uses bbp_is_reply_anonymous()
    2540  *
    25412296 * @return bool
    25422297 */
     
    25722327 * @param int   $forum_id Optional. Topic id
    25732328 * @param array $args     See {@link bbp_get_moderator_list()}
    2574  * @uses bbp_get_moderator_list() To get the moderator list
    25752329 */
    25762330function bbp_moderator_list( $forum_id = 0, $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.