Changeset 5951 for trunk/src/includes/users/template.php
- Timestamp:
- 10/28/2015 04:07:50 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/users/template.php (modified) (69 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/users/template.php
r5900 r5951 16 16 * Output a validated user id 17 17 * 18 * @since bbPress (r2729)18 * @since 2.0.0 bbPress (r2729) 19 19 * 20 20 * @param int $user_id Optional. User id … … 29 29 * Return a validated user id 30 30 * 31 * @since bbPress (r2729)31 * @since 2.0.0 bbPress (r2729) 32 32 * 33 33 * @param int $user_id Optional. User id … … 64 64 * Output ID of current user 65 65 * 66 * @since bbPress (r2574)66 * @since 2.0.0 bbPress (r2574) 67 67 * 68 68 * @uses bbp_get_current_user_id() To get the current user id … … 74 74 * Return ID of current user 75 75 * 76 * @since bbPress (r2574)76 * @since 2.0.0 bbPress (r2574) 77 77 * 78 78 * @uses bbp_get_user_id() To get the current user id … … 87 87 * Output ID of displayed user 88 88 * 89 * @since bbPress (r2688)89 * @since 2.0.0 bbPress (r2688) 90 90 * 91 91 * @uses bbp_get_displayed_user_id() To get the displayed user id … … 97 97 * Return ID of displayed user 98 98 * 99 * @since bbPress (r2688)99 * @since 2.0.0 bbPress (r2688) 100 100 * 101 101 * @uses bbp_get_user_id() To get the displayed user id … … 114 114 * __get() method, it can also be used to get user_meta values. 115 115 * 116 * @since bbPress (r2688)116 * @since 2.0.0 bbPress (r2688) 117 117 * 118 118 * @param string $field Field to get … … 130 130 * __get() method, it can also be used to get user_meta values. 131 131 * 132 * @since bbPress (r2688)132 * @since 2.0.0 bbPress (r2688) 133 133 * 134 134 * @param string $field Field to get … … 163 163 * Output name of current user 164 164 * 165 * @since bbPress (r2574)165 * @since 2.0.0 bbPress (r2574) 166 166 * 167 167 * @uses bbp_get_current_user_name() To get the current user name … … 173 173 * Return name of current user 174 174 * 175 * @since bbPress (r2574)175 * @since 2.0.0 bbPress (r2574) 176 176 * 177 177 * @uses apply_filters() Calls 'bbp_get_current_user_name' with the … … 190 190 * Output avatar of current user 191 191 * 192 * @since bbPress (r2574)192 * @since 2.0.0 bbPress (r2574) 193 193 * 194 194 * @param int $size Size of the avatar. Defaults to 40 … … 202 202 * Return avatar of current user 203 203 * 204 * @since bbPress (r2574)204 * @since 2.0.0 bbPress (r2574) 205 205 * 206 206 * @param int $size Size of the avatar. Defaults to 40 … … 228 228 * Output link to the profile page of a user 229 229 * 230 * @since bbPress (r2688)230 * @since 2.0.0 bbPress (r2688) 231 231 * 232 232 * @param int $user_id Optional. User id … … 239 239 * Return link to the profile page of a user 240 240 * 241 * @since bbPress (r2688)241 * @since 2.0.0 bbPress (r2688) 242 242 * 243 243 * @param int $user_id Optional. User id … … 266 266 * Output a users nicename to the screen 267 267 * 268 * @since bbPress (r4671)268 * @since 2.3.0 bbPress (r4671) 269 269 * 270 270 * @param int $user_id User ID whose nicename to get … … 277 277 * Return a users nicename to the screen 278 278 * 279 * @since bbPress (r4671)279 * @since 2.3.0 bbPress (r4671) 280 280 * 281 281 * @param int $user_id User ID whose nicename to get … … 319 319 * Output URL to the profile page of a user 320 320 * 321 * @since bbPress (r2688)321 * @since 2.0.0 bbPress (r2688) 322 322 * 323 323 * @param int $user_id Optional. User id … … 331 331 * Return URL to the profile page of a user 332 332 * 333 * @since bbPress (r2688)333 * @since 2.0.0 bbPress (r2688) 334 334 * 335 335 * @param int $user_id Optional. User id … … 382 382 * Output link to the profile edit page of a user 383 383 * 384 * @since bbPress (r2688)384 * @since 2.0.0 bbPress (r2688) 385 385 * 386 386 * @param int $user_id Optional. User id … … 393 393 * Return link to the profile edit page of a user 394 394 * 395 * @since bbPress (r2688)395 * @since 2.0.0 bbPress (r2688) 396 396 * 397 397 * @param int $user_id Optional. User id … … 419 419 * Output URL to the profile edit page of a user 420 420 * 421 * @since bbPress (r2688)421 * @since 2.0.0 bbPress (r2688) 422 422 * 423 423 * @param int $user_id Optional. User id … … 431 431 * Return URL to the profile edit page of a user 432 432 * 433 * @since bbPress (r2688)433 * @since 2.0.0 bbPress (r2688) 434 434 * 435 435 * @param int $user_id Optional. User id … … 479 479 * Output a user's main role for display 480 480 * 481 * @since bbPress (r3860)481 * @since 2.1.0 bbPress (r3860) 482 482 * 483 483 * @param int $user_id … … 490 490 * Return a user's main role for display 491 491 * 492 * @since bbPress (r3860)492 * @since 2.1.0 bbPress (r3860) 493 493 * 494 494 * @param int $user_id … … 530 530 * Output the link to the admin section 531 531 * 532 * @since bbPress (r2827)532 * @since 2.0.0 bbPress (r2827) 533 533 * 534 534 * @param array $args Optional. See {@link bbp_get_admin_link()} … … 541 541 * Return the link to the admin section 542 542 * 543 * @since bbPress (r2827)543 * @since 2.0.0 bbPress (r2827) 544 544 * 545 545 * @param array $args Optional. This function supports these arguments: … … 578 578 * Output the author IP address of a post 579 579 * 580 * @since bbPress (r3120)580 * @since 2.0.0 bbPress (r3120) 581 581 * 582 582 * @param array $args Optional. If it is an integer, it is used as post id. … … 589 589 * Return the author IP address of a post 590 590 * 591 * @since bbPress (r3120)591 * @since 2.0.0 bbPress (r3120) 592 592 * 593 593 * @param array $args Optional. If an integer, it is used as reply id. … … 629 629 * and reply author information in the anonymous form template-part. 630 630 * 631 * @since bbPress (r5119)631 * @since 2.5.0 bbPress (r5119) 632 632 * 633 633 * @param int $post_id … … 645 645 * and reply author information in the anonymous form template-part. 646 646 * 647 * @since bbPress (r5119)647 * @since 2.5.0 bbPress (r5119) 648 648 * 649 649 * @param int $post_id … … 685 685 * and reply author information in the anonymous user form template-part. 686 686 * 687 * @since bbPress (r5119)687 * @since 2.5.0 bbPress (r5119) 688 688 * 689 689 * @param int $post_id … … 701 701 * and reply author information in the anonymous user form template-part. 702 702 * 703 * @since bbPress (r5119)703 * @since 2.5.0 bbPress (r5119) 704 704 * 705 705 * @param int $post_id … … 741 741 * and reply author information in the anonymous user form template-part. 742 742 * 743 * @since bbPress (r5119)743 * @since 2.5.0 bbPress (r5119) 744 744 * 745 745 * @param int $post_id … … 757 757 * and reply author information in the anonymous user form template-part. 758 758 * 759 * @since bbPress (r5119)759 * @since 2.5.0 bbPress (r5119) 760 760 * 761 761 * @param int $post_id … … 795 795 * Output the link to the user's favorites page (profile page) 796 796 * 797 * @since bbPress (r2652)797 * @since 2.0.0 bbPress (r2652) 798 798 * 799 799 * @param int $user_id Optional. User id … … 806 806 * Return the link to the user's favorites page (profile page) 807 807 * 808 * @since bbPress (r2652)808 * @since 2.0.0 bbPress (r2652) 809 809 * 810 810 * @param int $user_id Optional. User id … … 849 849 * Output the link to make a topic favorite/remove a topic from favorites 850 850 * 851 * @since bbPress (r2652)851 * @since 2.0.0 bbPress (r2652) 852 852 * 853 853 * @param array $args See {@link bbp_get_user_favorites_link()} … … 865 865 * favorites 866 866 * 867 * @since bbPress (r2652)867 * @since 2.0.0 bbPress (r2652) 868 868 * 869 869 * @param array $args This function supports these arguments: … … 953 953 * Output the link to the user's subscriptions page (profile page) 954 954 * 955 * @since bbPress (r2688)955 * @since 2.0.0 bbPress (r2688) 956 956 * 957 957 * @param int $user_id Optional. User id … … 964 964 * Return the link to the user's subscriptions page (profile page) 965 965 * 966 * @since bbPress (r2688)966 * @since 2.0.0 bbPress (r2688) 967 967 * 968 968 * @param int $user_id Optional. User id … … 1007 1007 * Output the link to subscribe/unsubscribe from a topic 1008 1008 * 1009 * @since bbPress (r2668)1009 * @since 2.0.0 bbPress (r2668) 1010 1010 * 1011 1011 * @param array $args See {@link bbp_get_user_subscribe_link()} … … 1020 1020 * Return the link to subscribe/unsubscribe from a forum or topic 1021 1021 * 1022 * @since bbPress (r2668)1022 * @since 2.0.0 bbPress (r2668) 1023 1023 * 1024 1024 * @param array $args This function supports these arguments: … … 1150 1150 * Display profile edit success notice on user edit page 1151 1151 * 1152 * @since bbPress (r2688)1152 * @since 2.0.0 bbPress (r2688) 1153 1153 * 1154 1154 * @uses bbp_is_single_user() To check if it's the profile page … … 1179 1179 * Display pending email change notice on user edit page 1180 1180 * 1181 * @since bbPress (r5660)1181 * @since 2.6.0 bbPress (r5660) 1182 1182 * 1183 1183 * @uses bbp_get_displayed_user_id() To get the displayed user ID … … 1229 1229 * Super admin privileges notice 1230 1230 * 1231 * @since bbPress (r2688)1231 * @since 2.0.0 bbPress (r2688) 1232 1232 * 1233 1233 * @uses is_multisite() To check if the blog is multisite … … 1256 1256 * Drop down for selecting the user's display name 1257 1257 * 1258 * @since bbPress (r2688)1258 * @since 2.0.0 bbPress (r2688) 1259 1259 */ 1260 1260 function bbp_edit_user_display_name() { … … 1304 1304 * Output blog role selector (for user edit) 1305 1305 * 1306 * @since bbPress (r2688)1306 * @since 2.0.0 bbPress (r2688) 1307 1307 */ 1308 1308 function bbp_edit_user_blog_role() { … … 1336 1336 * Output forum role selector (for user edit) 1337 1337 * 1338 * @since bbPress (r4284)1338 * @since 2.2.0 bbPress (r4284) 1339 1339 */ 1340 1340 function bbp_edit_user_forums_role() { … … 1373 1373 * Return user contact methods Selectbox 1374 1374 * 1375 * @since bbPress (r2688)1375 * @since 2.0.0 bbPress (r2688) 1376 1376 * 1377 1377 * @uses _wp_get_user_contactmethods() To get the contact methods … … 1392 1392 * Output the link to the user's topics 1393 1393 * 1394 * @since bbPress (r4225)1394 * @since 2.2.0 bbPress (r4225) 1395 1395 * 1396 1396 * @param int $user_id Optional. User id … … 1403 1403 * Return the link to the user's topics 1404 1404 * 1405 * @since bbPress (r4225)1405 * @since 2.2.0 bbPress (r4225) 1406 1406 * 1407 1407 * @param int $user_id Optional. User id … … 1448 1448 * Output the link to the user's replies 1449 1449 * 1450 * @since bbPress (r4225)1450 * @since 2.2.0 bbPress (r4225) 1451 1451 * 1452 1452 * @param int $user_id Optional. User id … … 1459 1459 * Return the link to the user's replies 1460 1460 * 1461 * @since bbPress (r4225)1461 * @since 2.2.0 bbPress (r4225) 1462 1462 * 1463 1463 * @param int $user_id Optional. User id … … 1504 1504 * Handle the login and registration template notices 1505 1505 * 1506 * @since bbPress (r2970)1506 * @since 2.0.0 bbPress (r2970) 1507 1507 * 1508 1508 * @uses WP_Error bbPress::errors::add() To add an error or message … … 1547 1547 * where the user should never have access to the contents of that file. 1548 1548 * 1549 * @since bbPress (r2815)1549 * @since 2.0.0 bbPress (r2815) 1550 1550 * 1551 1551 * @param string $url The URL to redirect to … … 1572 1572 * Output the required hidden fields when logging in 1573 1573 * 1574 * @since bbPress (r2815)1574 * @since 2.0.0 bbPress (r2815) 1575 1575 * 1576 1576 * @uses apply_filters() To allow custom redirection … … 1598 1598 * Output the required hidden fields when registering 1599 1599 * 1600 * @since bbPress (r2815)1600 * @since 2.0.0 bbPress (r2815) 1601 1601 * 1602 1602 * @uses add_query_arg() To add query args … … 1627 1627 * Output the required hidden fields when user lost password 1628 1628 * 1629 * @since bbPress (r2815)1629 * @since 2.0.0 bbPress (r2815) 1630 1630 * 1631 1631 * @uses apply_filters() To allow custom redirection … … 1653 1653 * Output the author link of a post 1654 1654 * 1655 * @since bbPress (r2875)1655 * @since 2.0.0 bbPress (r2875) 1656 1656 * 1657 1657 * @param array $args Optional. If it is an integer, it is used as post id. … … 1664 1664 * Return the author link of the post 1665 1665 * 1666 * @since bbPress (r2875)1666 * @since 2.0.0 bbPress (r2875) 1667 1667 * 1668 1668 * @param array $args Optional. If an integer, it is used as reply id. … … 1753 1753 * Check if the user can access a specific forum 1754 1754 * 1755 * @since bbPress (r3127)1755 * @since 2.0.0 bbPress (r3127) 1756 1756 * 1757 1757 * @uses bbp_get_current_user_id() … … 1807 1807 * Check if the current user can publish topics 1808 1808 * 1809 * @since bbPress (r3127)1809 * @since 2.0.0 bbPress (r3127) 1810 1810 * 1811 1811 * @uses bbp_is_user_keymaster() … … 1843 1843 * Check if the current user can publish forums 1844 1844 * 1845 * @since bbPress (r3549)1845 * @since 2.1.0 bbPress (r3549) 1846 1846 * 1847 1847 * @uses bbp_is_user_keymaster() … … 1873 1873 * Check if the current user can publish replies 1874 1874 * 1875 * @since bbPress (r3127)1875 * @since 2.0.0 bbPress (r3127) 1876 1876 * 1877 1877 * @uses bbp_is_user_keymaster() … … 1917 1917 * Get the forums the current user has the ability to see and post to 1918 1918 * 1919 * @since bbPress (r3127)1919 * @since 2.0.0 bbPress (r3127) 1920 1920 * 1921 1921 * @uses bbp_get_forum_post_type() … … 1970 1970 * Performs a series of checks to ensure the current user can create forums. 1971 1971 * 1972 * @since bbPress (r3549)1972 * @since 2.1.0 bbPress (r3549) 1973 1973 * 1974 1974 * @uses bbp_is_user_keymaster() … … 2004 2004 * Performs a series of checks to ensure the current user can create topics. 2005 2005 * 2006 * @since bbPress (r3127)2006 * @since 2.0.0 bbPress (r3127) 2007 2007 * 2008 2008 * @uses bbp_is_user_keymaster() … … 2040 2040 * Performs a series of checks to ensure the current user can create replies. 2041 2041 * 2042 * @since bbPress (r3127)2042 * @since 2.0.0 bbPress (r3127) 2043 2043 * 2044 2044 * @uses bbp_is_user_keymaster() … … 2077 2077 * anonymous user form fields. 2078 2078 * 2079 * @since bbPress (r5119)2079 * @since 2.5.0 bbPress (r5119) 2080 2080 * 2081 2081 * @uses bbp_is_anonymous()
Note: See TracChangeset
for help on using the changeset viewer.