Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/28/2015 04:07:50 AM (8 years ago)
Author:
netweb
Message:

Standardize @since PHPDoc tags style and format

This changeset updates the style and formatting of all of our @since instances for compatibility with phpDocumentor 2 and WP-Parser as we move toward implementing the bbPress developer code reference.

Props thebrandonallen
Fixes #2879

File:
1 edited

Legend:

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

    r5923 r5951  
    1717 * for the forum to function properly.
    1818 *
    19  * @since bbPress (r3349)
     19 * @since 2.0.0 bbPress (r3349)
    2020 *
    2121 * @uses bbp_parse_args()
     
    643643 * Handle the saving of core forum metadata (Status, Visibility, and Type)
    644644 *
    645  * @since bbPress (r3678)
     645 * @since 2.1.0 bbPress (r3678)
     646 *
    646647 * @param int $forum_id
    647648 * @uses bbp_is_forum_closed() To check if forum is closed
     
    727728         * Allow custom forum visibility save actions
    728729         *
    729          * @since bbPress (r5855)
     730         * @since 2.6.0 bbPress (r5855)
    730731         *
    731732         * @param int    $forum_id       The forum ID
     
    742743 * Closes a forum
    743744 *
    744  * @since bbPress (r2746)
     745 * @since 2.0.0 bbPress (r2746)
    745746 *
    746747 * @param int $forum_id forum id
     
    766767 * Opens a forum
    767768 *
    768  * @since bbPress (r2746)
     769 * @since 2.0.0 bbPress (r2746)
    769770 *
    770771 * @param int $forum_id forum id
     
    793794 * Make the forum a category
    794795 *
    795  * @since bbPress (r2746)
     796 * @since 2.0.0 bbPress (r2746)
    796797 *
    797798 * @param int $forum_id Optional. Forum id
     
    815816 * Remove the category status from a forum
    816817 *
    817  * @since bbPress (r2746)
     818 * @since 2.0.0 bbPress (r2746)
    818819 *
    819820 * @param int $forum_id Optional. Forum id
     
    839840 * Mark the forum as public
    840841 *
    841  * @since bbPress (r2746)
     842 * @since 2.0.0 bbPress (r2746)
    842843 *
    843844 * @param int $forum_id Optional. Forum id
     
    897898 * Mark the forum as private
    898899 *
    899  * @since bbPress (r2746)
     900 * @since 2.0.0 bbPress (r2746)
    900901 *
    901902 * @param int $forum_id Optional. Forum id
     
    947948 * Mark the forum as hidden
    948949 *
    949  * @since bbPress (r2996)
     950 * @since 2.0.0 bbPress (r2996)
    950951 *
    951952 * @param int $forum_id Optional. Forum id
     
    997998 * Recaches the private and hidden forums
    998999 *
    999  * @since bbPress (r5017)
     1000 * @since 2.4.0 bbPress (r5017)
    10001001 *
    10011002 * @uses delete_option() to delete private and hidden forum pointers
     
    10601061 * Remove a deleted forum from all users' subscriptions
    10611062 *
    1062  * @since bbPress (r5156)
     1063 * @since 2.5.0 bbPress (r5156)
    10631064 *
    10641065 * @param int $forum_id Get the forum ID to remove
     
    11021103 * Bump the total topic count of a forum
    11031104 *
    1104  * @since bbPress (r3825)
     1105 * @since 2.1.0 bbPress (r3825)
    11051106 *
    11061107 * @param int $forum_id Optional. Forum id.
     
    11601161 * Bump the total hidden topic count of a forum
    11611162 *
    1162  * @since bbPress (r3825)
     1163 * @since 2.1.0 bbPress (r3825)
    11631164 *
    11641165 * @param int $forum_id Optional. Forum id.
     
    11931194 * Bump the total topic count of a forum
    11941195 *
    1195  * @since bbPress (r3825)
     1196 * @since 2.1.0 bbPress (r3825)
    11961197 *
    11971198 * @param int $forum_id Optional. Forum id.
     
    14861487 * Update the forum sub-forum count
    14871488 *
    1488  * @since bbPress (r2625)
     1489 * @since 2.0.0 bbPress (r2625)
    14891490 *
    14901491 * @param int $forum_id Optional. Forum id
     
    15091510 * Adjust the total topic count of a forum
    15101511 *
    1511  * @since bbPress (r2464)
     1512 * @since 2.0.0 bbPress (r2464)
    15121513 *
    15131514 * @param int $forum_id Optional. Forum id or topic id. It is checked whether it
     
    15541555 * spammed and pending topics)
    15551556 *
    1556  * @since bbPress (r2888)
     1557 * @since 2.0.0 bbPress (r2888)
    15571558 *
    15581559 * @param int $forum_id Optional. Topic id to update
     
    16071608 * Adjust the total reply count of a forum
    16081609 *
    1609  * @since bbPress (r2464)
     1610 * @since 2.0.0 bbPress (r2464)
    16101611 *
    16111612 * @param int $forum_id Optional. Forum id or topic id. It is checked whether it
     
    16641665 * but is necessary to keep everything accurate.
    16651666 *
    1666  * @since bbPress (r2908)
     1667 * @since 2.0.0 bbPress (r2908)
    16671668 *
    16681669 * @param array $args Supports these arguments:
     
    17311732 * Get forum mods for a specific forum ID
    17321733 *
    1733  * @since bbPress (r5836)
     1734 * @since 2.6.0 bbPress (r5836)
    17341735 *
    17351736 * @param int $forum_id
     
    17481749 * Get forum mods for a specific forum ID
    17491750 *
    1750  * @since bbPress (r4165)
     1751 * @since 2.2.0 bbPress (r4165)
    17511752 *
    17521753 * @param int    $forum_id
     
    17681769 * Return an associative array of available topic statuses
    17691770 *
    1770  * @since bbPress (r5059)
     1771 * @since 2.4.0 bbPress (r5059)
    17711772 *
    17721773 * @return array
     
    17821783 * Return an associative array of forum types
    17831784 *
    1784  * @since bbPress (r5059)
     1785 * @since 2.4.0 bbPress (r5059)
    17851786 *
    17861787 * @return array
     
    17961797 * Return an associative array of forum visibility
    17971798 *
    1798  * @since bbPress (r5059)
     1799 * @since 2.4.0 bbPress (r5059)
    17991800 *
    18001801 * @return array
     
    18151816 * Only hidden forum ids are returned. Public and private ids are not.
    18161817 *
    1817  * @since bbPress (r3007)
     1818 * @since 2.0.0 bbPress (r3007)
    18181819 *
    18191820 * @uses get_option() Returns the unserialized array of hidden forum ids
     
    18321833 * Only private forum ids are returned. Public and hidden ids are not.
    18331834 *
    1834  * @since bbPress (r3007)
     1835 * @since 2.0.0 bbPress (r3007)
    18351836 *
    18361837 * @uses get_option() Returns the unserialized array of private forum ids
     
    18481849 * from a query.
    18491850 *
    1850  * @since bbPress (r3291)
     1851 * @since 2.0.0 bbPress (r3291)
    18511852 *
    18521853 * @param string Optional. The type of value to return. (string|array|meta_query)
     
    19341935 * plugins that might be doing their own queries.
    19351936 *
    1936  * @since bbPress (r3291)
     1937 * @since 2.0.0 bbPress (r3291)
    19371938 *
    19381939 * @param WP_Query $posts_query
     
    20392040 * Only topics with published and closed statuses are returned
    20402041 *
    2041  * @since bbPress (r2908)
     2042 * @since 2.0.0 bbPress (r2908)
    20422043 *
    20432044 * @param int $forum_id Forum id
     
    20582059 * Only forums with published status are returned
    20592060 *
    2060  * @since bbPress (r2908)
     2061 * @since 2.0.0 bbPress (r2908)
    20612062 *
    20622063 * @param int $forum_id Forum id
     
    20762077 * Callback to sort forum ID's based on last active time
    20772078 *
    2078  * @since bbPress (r3789)
     2079 * @since 2.1.0 bbPress (r3789)
     2080 *
    20792081 * @param int $a First forum ID to compare
    20802082 * @param int $b Second forum ID to compare
     
    20902092 * Returns the forum's last reply id
    20912093 *
    2092  * @since bbPress (r2908)
     2094 * @since 2.0.0 bbPress (r2908)
    20932095 *
    20942096 * @param int $forum_id Forum id
     
    21362138 * the user can't view it, then sets a 404
    21372139 *
    2138  * @since bbPress (r2996)
     2140 * @since 2.0.0 bbPress (r2996)
    21392141 *
    21402142 * @uses current_user_can() To check if the current user can read private forums
     
    21912193 * the user can't view it, then sets a 404
    21922194 *
    2193  * @since bbPress (r2996)
     2195 * @since 2.0.0 bbPress (r2996)
    21942196 *
    21952197 * @uses current_user_can() To check if the current user can read private forums
     
    22472249 * Redirect if unathorized user is attempting to edit a forum
    22482250 *
    2249  * @since bbPress (r3607)
     2251 * @since 2.1.0 bbPress (r3607)
    22502252 *
    22512253 * @uses bbp_is_forum_edit()
     
    22712273 * Delete all topics (and their replies) for a specific forum ID
    22722274 *
    2273  * @since bbPress (r3668)
     2275 * @since 2.1.0 bbPress (r3668)
    22742276 *
    22752277 * @param int $forum_id
     
    23202322 * Trash all topics inside a forum
    23212323 *
    2322  * @since bbPress (r3668)
     2324 * @since 2.1.0 bbPress (r3668)
    23232325 *
    23242326 * @param int $forum_id
     
    23882390 * Trash all topics inside a forum
    23892391 *
    2390  * @since bbPress (r3668)
     2392 * @since 2.1.0 bbPress (r3668)
    23912393 *
    23922394 * @param int $forum_id
     
    24332435 * a forum that is being deleted.
    24342436 *
    2435  * @since bbPress (r3668)
     2437 * @since 2.1.0 bbPress (r3668)
     2438 *
    24362439 * @uses bbp_get_forum_id() To get the forum id
    24372440 * @uses bbp_is_forum() To check if the passed id is a forum
     
    24552458 * a forum that is being trashed.
    24562459 *
    2457  * @since bbPress (r3668)
     2460 * @since 2.1.0 bbPress (r3668)
     2461 *
    24582462 * @uses bbp_get_forum_id() To get the forum id
    24592463 * @uses bbp_is_forum() To check if the passed id is a forum
     
    24732477 * Called before untrashing a forum
    24742478 *
    2475  * @since bbPress (r3668)
     2479 * @since 2.1.0 bbPress (r3668)
     2480 *
    24762481 * @uses bbp_get_forum_id() To get the forum id
    24772482 * @uses bbp_is_forum() To check if the passed id is a forum
     
    24932498 * Called after deleting a forum
    24942499 *
    2495  * @since bbPress (r3668)
     2500 * @since 2.1.0 bbPress (r3668)
     2501 *
    24962502 * @uses bbp_get_forum_id() To get the forum id
    24972503 * @uses bbp_is_forum() To check if the passed id is a forum
     
    25112517 * Called after trashing a forum
    25122518 *
    2513  * @since bbPress (r3668)
     2519 * @since 2.1.0 bbPress (r3668)
     2520 *
    25142521 * @uses bbp_get_forum_id() To get the forum id
    25152522 * @uses bbp_is_forum() To check if the passed id is a forum
     
    25292536 * Called after untrashing a forum
    25302537 *
    2531  * @since bbPress (r3668)
     2538 * @since 2.1.0 bbPress (r3668)
     2539 *
    25322540 * @uses bbp_get_forum_id() To get the forum id
    25332541 * @uses bbp_is_forum() To check if the passed id is a forum
Note: See TracChangeset for help on using the changeset viewer.