Changeset 5951 for trunk/src/includes/forums/functions.php
- Timestamp:
- 10/28/2015 04:07:50 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/forums/functions.php
r5923 r5951 17 17 * for the forum to function properly. 18 18 * 19 * @since bbPress (r3349)19 * @since 2.0.0 bbPress (r3349) 20 20 * 21 21 * @uses bbp_parse_args() … … 643 643 * Handle the saving of core forum metadata (Status, Visibility, and Type) 644 644 * 645 * @since bbPress (r3678) 645 * @since 2.1.0 bbPress (r3678) 646 * 646 647 * @param int $forum_id 647 648 * @uses bbp_is_forum_closed() To check if forum is closed … … 727 728 * Allow custom forum visibility save actions 728 729 * 729 * @since bbPress (r5855)730 * @since 2.6.0 bbPress (r5855) 730 731 * 731 732 * @param int $forum_id The forum ID … … 742 743 * Closes a forum 743 744 * 744 * @since bbPress (r2746)745 * @since 2.0.0 bbPress (r2746) 745 746 * 746 747 * @param int $forum_id forum id … … 766 767 * Opens a forum 767 768 * 768 * @since bbPress (r2746)769 * @since 2.0.0 bbPress (r2746) 769 770 * 770 771 * @param int $forum_id forum id … … 793 794 * Make the forum a category 794 795 * 795 * @since bbPress (r2746)796 * @since 2.0.0 bbPress (r2746) 796 797 * 797 798 * @param int $forum_id Optional. Forum id … … 815 816 * Remove the category status from a forum 816 817 * 817 * @since bbPress (r2746)818 * @since 2.0.0 bbPress (r2746) 818 819 * 819 820 * @param int $forum_id Optional. Forum id … … 839 840 * Mark the forum as public 840 841 * 841 * @since bbPress (r2746)842 * @since 2.0.0 bbPress (r2746) 842 843 * 843 844 * @param int $forum_id Optional. Forum id … … 897 898 * Mark the forum as private 898 899 * 899 * @since bbPress (r2746)900 * @since 2.0.0 bbPress (r2746) 900 901 * 901 902 * @param int $forum_id Optional. Forum id … … 947 948 * Mark the forum as hidden 948 949 * 949 * @since bbPress (r2996)950 * @since 2.0.0 bbPress (r2996) 950 951 * 951 952 * @param int $forum_id Optional. Forum id … … 997 998 * Recaches the private and hidden forums 998 999 * 999 * @since bbPress (r5017)1000 * @since 2.4.0 bbPress (r5017) 1000 1001 * 1001 1002 * @uses delete_option() to delete private and hidden forum pointers … … 1060 1061 * Remove a deleted forum from all users' subscriptions 1061 1062 * 1062 * @since bbPress (r5156)1063 * @since 2.5.0 bbPress (r5156) 1063 1064 * 1064 1065 * @param int $forum_id Get the forum ID to remove … … 1102 1103 * Bump the total topic count of a forum 1103 1104 * 1104 * @since bbPress (r3825)1105 * @since 2.1.0 bbPress (r3825) 1105 1106 * 1106 1107 * @param int $forum_id Optional. Forum id. … … 1160 1161 * Bump the total hidden topic count of a forum 1161 1162 * 1162 * @since bbPress (r3825)1163 * @since 2.1.0 bbPress (r3825) 1163 1164 * 1164 1165 * @param int $forum_id Optional. Forum id. … … 1193 1194 * Bump the total topic count of a forum 1194 1195 * 1195 * @since bbPress (r3825)1196 * @since 2.1.0 bbPress (r3825) 1196 1197 * 1197 1198 * @param int $forum_id Optional. Forum id. … … 1486 1487 * Update the forum sub-forum count 1487 1488 * 1488 * @since bbPress (r2625)1489 * @since 2.0.0 bbPress (r2625) 1489 1490 * 1490 1491 * @param int $forum_id Optional. Forum id … … 1509 1510 * Adjust the total topic count of a forum 1510 1511 * 1511 * @since bbPress (r2464)1512 * @since 2.0.0 bbPress (r2464) 1512 1513 * 1513 1514 * @param int $forum_id Optional. Forum id or topic id. It is checked whether it … … 1554 1555 * spammed and pending topics) 1555 1556 * 1556 * @since bbPress (r2888)1557 * @since 2.0.0 bbPress (r2888) 1557 1558 * 1558 1559 * @param int $forum_id Optional. Topic id to update … … 1607 1608 * Adjust the total reply count of a forum 1608 1609 * 1609 * @since bbPress (r2464)1610 * @since 2.0.0 bbPress (r2464) 1610 1611 * 1611 1612 * @param int $forum_id Optional. Forum id or topic id. It is checked whether it … … 1664 1665 * but is necessary to keep everything accurate. 1665 1666 * 1666 * @since bbPress (r2908)1667 * @since 2.0.0 bbPress (r2908) 1667 1668 * 1668 1669 * @param array $args Supports these arguments: … … 1731 1732 * Get forum mods for a specific forum ID 1732 1733 * 1733 * @since bbPress (r5836)1734 * @since 2.6.0 bbPress (r5836) 1734 1735 * 1735 1736 * @param int $forum_id … … 1748 1749 * Get forum mods for a specific forum ID 1749 1750 * 1750 * @since bbPress (r4165)1751 * @since 2.2.0 bbPress (r4165) 1751 1752 * 1752 1753 * @param int $forum_id … … 1768 1769 * Return an associative array of available topic statuses 1769 1770 * 1770 * @since bbPress (r5059)1771 * @since 2.4.0 bbPress (r5059) 1771 1772 * 1772 1773 * @return array … … 1782 1783 * Return an associative array of forum types 1783 1784 * 1784 * @since bbPress (r5059)1785 * @since 2.4.0 bbPress (r5059) 1785 1786 * 1786 1787 * @return array … … 1796 1797 * Return an associative array of forum visibility 1797 1798 * 1798 * @since bbPress (r5059)1799 * @since 2.4.0 bbPress (r5059) 1799 1800 * 1800 1801 * @return array … … 1815 1816 * Only hidden forum ids are returned. Public and private ids are not. 1816 1817 * 1817 * @since bbPress (r3007)1818 * @since 2.0.0 bbPress (r3007) 1818 1819 * 1819 1820 * @uses get_option() Returns the unserialized array of hidden forum ids … … 1832 1833 * Only private forum ids are returned. Public and hidden ids are not. 1833 1834 * 1834 * @since bbPress (r3007)1835 * @since 2.0.0 bbPress (r3007) 1835 1836 * 1836 1837 * @uses get_option() Returns the unserialized array of private forum ids … … 1848 1849 * from a query. 1849 1850 * 1850 * @since bbPress (r3291)1851 * @since 2.0.0 bbPress (r3291) 1851 1852 * 1852 1853 * @param string Optional. The type of value to return. (string|array|meta_query) … … 1934 1935 * plugins that might be doing their own queries. 1935 1936 * 1936 * @since bbPress (r3291)1937 * @since 2.0.0 bbPress (r3291) 1937 1938 * 1938 1939 * @param WP_Query $posts_query … … 2039 2040 * Only topics with published and closed statuses are returned 2040 2041 * 2041 * @since bbPress (r2908)2042 * @since 2.0.0 bbPress (r2908) 2042 2043 * 2043 2044 * @param int $forum_id Forum id … … 2058 2059 * Only forums with published status are returned 2059 2060 * 2060 * @since bbPress (r2908)2061 * @since 2.0.0 bbPress (r2908) 2061 2062 * 2062 2063 * @param int $forum_id Forum id … … 2076 2077 * Callback to sort forum ID's based on last active time 2077 2078 * 2078 * @since bbPress (r3789) 2079 * @since 2.1.0 bbPress (r3789) 2080 * 2079 2081 * @param int $a First forum ID to compare 2080 2082 * @param int $b Second forum ID to compare … … 2090 2092 * Returns the forum's last reply id 2091 2093 * 2092 * @since bbPress (r2908)2094 * @since 2.0.0 bbPress (r2908) 2093 2095 * 2094 2096 * @param int $forum_id Forum id … … 2136 2138 * the user can't view it, then sets a 404 2137 2139 * 2138 * @since bbPress (r2996)2140 * @since 2.0.0 bbPress (r2996) 2139 2141 * 2140 2142 * @uses current_user_can() To check if the current user can read private forums … … 2191 2193 * the user can't view it, then sets a 404 2192 2194 * 2193 * @since bbPress (r2996)2195 * @since 2.0.0 bbPress (r2996) 2194 2196 * 2195 2197 * @uses current_user_can() To check if the current user can read private forums … … 2247 2249 * Redirect if unathorized user is attempting to edit a forum 2248 2250 * 2249 * @since bbPress (r3607)2251 * @since 2.1.0 bbPress (r3607) 2250 2252 * 2251 2253 * @uses bbp_is_forum_edit() … … 2271 2273 * Delete all topics (and their replies) for a specific forum ID 2272 2274 * 2273 * @since bbPress (r3668)2275 * @since 2.1.0 bbPress (r3668) 2274 2276 * 2275 2277 * @param int $forum_id … … 2320 2322 * Trash all topics inside a forum 2321 2323 * 2322 * @since bbPress (r3668)2324 * @since 2.1.0 bbPress (r3668) 2323 2325 * 2324 2326 * @param int $forum_id … … 2388 2390 * Trash all topics inside a forum 2389 2391 * 2390 * @since bbPress (r3668)2392 * @since 2.1.0 bbPress (r3668) 2391 2393 * 2392 2394 * @param int $forum_id … … 2433 2435 * a forum that is being deleted. 2434 2436 * 2435 * @since bbPress (r3668) 2437 * @since 2.1.0 bbPress (r3668) 2438 * 2436 2439 * @uses bbp_get_forum_id() To get the forum id 2437 2440 * @uses bbp_is_forum() To check if the passed id is a forum … … 2455 2458 * a forum that is being trashed. 2456 2459 * 2457 * @since bbPress (r3668) 2460 * @since 2.1.0 bbPress (r3668) 2461 * 2458 2462 * @uses bbp_get_forum_id() To get the forum id 2459 2463 * @uses bbp_is_forum() To check if the passed id is a forum … … 2473 2477 * Called before untrashing a forum 2474 2478 * 2475 * @since bbPress (r3668) 2479 * @since 2.1.0 bbPress (r3668) 2480 * 2476 2481 * @uses bbp_get_forum_id() To get the forum id 2477 2482 * @uses bbp_is_forum() To check if the passed id is a forum … … 2493 2498 * Called after deleting a forum 2494 2499 * 2495 * @since bbPress (r3668) 2500 * @since 2.1.0 bbPress (r3668) 2501 * 2496 2502 * @uses bbp_get_forum_id() To get the forum id 2497 2503 * @uses bbp_is_forum() To check if the passed id is a forum … … 2511 2517 * Called after trashing a forum 2512 2518 * 2513 * @since bbPress (r3668) 2519 * @since 2.1.0 bbPress (r3668) 2520 * 2514 2521 * @uses bbp_get_forum_id() To get the forum id 2515 2522 * @uses bbp_is_forum() To check if the passed id is a forum … … 2529 2536 * Called after untrashing a forum 2530 2537 * 2531 * @since bbPress (r3668) 2538 * @since 2.1.0 bbPress (r3668) 2539 * 2532 2540 * @uses bbp_get_forum_id() To get the forum id 2533 2541 * @uses bbp_is_forum() To check if the passed id is a forum
Note: See TracChangeset
for help on using the changeset viewer.