Changeset 10711
- Timestamp:
- 04/15/2016 04:59:34 AM (9 years ago)
- Location:
- trunk/src/bp-members
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-actions.php
r10417 r10711 23 23 * 24 24 * Note: no longer used in the current state. See the Settings component. 25 * 26 * @since 1.1.0 25 27 * 26 28 * @param int $user_id Optional. User ID to mark as spam. Defaults to displayed user. … … 74 76 * 75 77 * Note: No longer called here. See the Settings component. 78 * 79 * @since 1.1.0 76 80 */ 77 81 function bp_core_action_delete_user() { -
trunk/src/bp-members/bp-members-activity.php
r10417 r10711 71 71 * Create a "became a registered user" activity item when a user activates his account. 72 72 * 73 * @since 1.2.2 74 * 73 75 * @param array $user Array of userdata passed to bp_core_activated_user hook. 74 76 * @return bool -
trunk/src/bp-members/bp-members-adminbar.php
r10417 r10711 45 45 ) ) ); 46 46 47 // Show login and sign-up links.47 // Show login and sign-up links. 48 48 } elseif ( !empty( $wp_admin_bar ) ) { 49 49 -
trunk/src/bp-members/bp-members-cache.php
r10417 r10711 53 53 * Called when the user is deleted or marked as spam. 54 54 * 55 * @since BuddyPres (2.2.0)55 * @since 2.2.0 56 56 * 57 57 * @param int $user_id ID of the deleted user. -
trunk/src/bp-members/bp-members-filters.php
r10417 r10711 111 111 $profile_link = trailingslashit( bp_core_get_user_domain( $user_id ) . bp_get_profile_slug() . '/edit' ); 112 112 113 // Default to $url.114 113 } else { 114 // Default to $url. 115 115 $profile_link = $url; 116 116 } -
trunk/src/bp-members/bp-members-functions.php
r10665 r10711 36 36 * In general, fallback values are only used during initial BP page creation, 37 37 * when no slugs have been explicitly defined. 38 * 39 * @since 1.5.0 38 40 */ 39 41 function bp_core_define_slugs() { … … 75 77 * need backward compatibility with BP_Core_User::get_users(), filter the 76 78 * bp_use_legacy_user_query value, returning true. 79 * 80 * @since 1.2.0 77 81 * 78 82 * @param array|string $args { … … 159 163 * Return the domain for the passed user: e.g. http://example.com/members/andy/. 160 164 * 165 * @since 1.0.0 166 * 161 167 * @param int $user_id The ID of the user. 162 168 * @param string|bool $user_nicename Optional. user_nicename of the user. … … 199 205 * Fetch everything in the wp_users table for a user, without any usermeta. 200 206 * 207 * @since 1.2.0 208 * 201 209 * @param int $user_id The ID of the user. 202 210 * @return array … … 293 301 * This function is sensitive to the BP_ENABLE_USERNAME_COMPATIBILITY_MODE, 294 302 * so it will return the user_login or user_nicename as appropriate. 303 * 304 * @since 1.0.0 295 305 * 296 306 * @param int $user_id User ID to check. … … 436 446 * Return the email address for the user based on user ID. 437 447 * 448 * @since 1.0.0 449 * 438 450 * @param int $uid User ID to check. 439 451 * @return string The email for the matched user. Empty string if no user … … 473 485 * 474 486 * Optional parameters will return just the name or just the URL. 487 * 488 * @since 1.0.0 475 489 * 476 490 * @param int $user_id User ID to check. … … 599 613 * Fetch the display name for a user. 600 614 * 615 * @since 1.0.1 616 * 601 617 * @param int|string|bool $user_id_or_username User ID or username. 602 618 * @return string|bool The display name for the user in question, or false if … … 644 660 * Return the user link for the user based on user email address. 645 661 * 662 * @since 1.0.0 663 * 646 664 * @param string $email The email address for the user. 647 665 * @return string The link to the users home base. False on no match. … … 662 680 /** 663 681 * Return the user link for the user based on the supplied identifier. 682 * 683 * @since 1.0.0 664 684 * 665 685 * @param string $username If BP_ENABLE_USERNAME_COMPATIBILITY_MODE is set, … … 692 712 * {@link bp_core_get_active_member_count()}. 693 713 * 714 * @since 1.2.0 715 * 694 716 * @return int The total number of members. 695 717 */ … … 717 739 /** 718 740 * Return the total number of members, limited to those members with last_activity. 741 * 742 * @since 1.6.0 719 743 * 720 744 * @return int The number of active members. … … 920 944 * Check whether a user has been marked as a spammer. 921 945 * 946 * @since 1.6.0 947 * 922 948 * @param int $user_id The ID for the user. 923 949 * @return bool True if spammer, otherwise false. … … 983 1009 /** 984 1010 * Check whether a user has been marked as deleted. 1011 * 1012 * @since 1.6.0 985 1013 * 986 1014 * @param int $user_id The ID for the user. … … 1215 1243 * Get the last activity for a given user. 1216 1244 * 1245 * @since 1.9.0 1246 * 1217 1247 * @param int $user_id The ID of the user. 1218 1248 * @return string Time of last activity, in 'Y-m-d H:i:s' format, or an empty … … 1294 1324 * Primarily used for self-deletions, as requested through Settings. 1295 1325 * 1326 * @since 1.0.0 1327 * 1296 1328 * @param int $user_id Optional. ID of the user to be deleted. Default: the 1297 1329 * logged-in user. … … 1379 1411 * 1380 1412 * Uses multibyte functions when available on the PHP build. 1413 * 1414 * @since 1.0.0 1381 1415 * 1382 1416 * @param string $str String to be upper-cased. … … 1426 1460 * Delete last_activity data for the user when the user is deleted. 1427 1461 * 1462 * @since 1.0.0 1463 * 1428 1464 * @param int $user_id The user ID for the user to delete usermeta for. 1429 1465 */ … … 1443 1479 * Check whether the logged-in user can edit settings for the displayed user. 1444 1480 * 1481 * @since 1.5.0 1482 * 1445 1483 * @return bool True if editing is allowed, otherwise false. 1446 1484 */ … … 1465 1503 /** 1466 1504 * Flush illegal names by getting and setting 'illegal_names' site option. 1505 * 1506 * @since 1.2.5 1467 1507 */ 1468 1508 function bp_core_flush_illegal_names() { … … 1473 1513 /** 1474 1514 * Add BuddyPress-specific items to the illegal_names array. 1515 * 1516 * @since 1.2.7 1475 1517 * 1476 1518 * @param array|string $value Illegal names as being saved defined in … … 1642 1684 * Validate a user name and email address when creating a new user. 1643 1685 * 1686 * @since 1.2.2 1687 * 1644 1688 * @param string $user_name Username to validate. 1645 1689 * @param string $user_email Email address to validate. … … 1745 1789 * Validate blog URL and title provided at signup. 1746 1790 * 1791 * @since 1.2.2 1792 * 1747 1793 * @todo Why do we have this wrapper? 1748 1794 * … … 1768 1814 /** 1769 1815 * Process data submitted at user registration and convert to a signup object. 1816 * 1817 * @since 1.2.0 1770 1818 * 1771 1819 * @todo There appears to be a bug in the return value on success. … … 1866 1914 * Create a blog and user based on data supplied at user registration. 1867 1915 * 1916 * @since 1.2.2 1917 * 1868 1918 * @param string $blog_domain Domain requested by user. 1869 1919 * @param string $blog_path Path requested by user. … … 1894 1944 /** 1895 1945 * Activate a signup, as identified by an activation key. 1946 * 1947 * @since 1.2.2 1896 1948 * 1897 1949 * @param string $key Activation key. … … 2136 2188 * during normal registration, XProfile data is provided directly by the user. 2137 2189 * 2190 * @since 1.2.0 2191 * 2138 2192 * @param int $user_id ID of the user. 2139 2193 * @return bool … … 2163 2217 /** 2164 2218 * Get the avatar storage directory for use during registration. 2219 * 2220 * @since 1.1.0 2165 2221 * 2166 2222 * @return string|bool Directory path on success, false on failure. … … 2200 2256 * Send activation email to a newly registered user. 2201 2257 * 2202 * @since 2.5.0 Add the $user_login parameter. 2258 * @since 1.2.2 2259 * @since 2.5.0 Add the $user_login parameter. 2203 2260 * 2204 2261 * @param int|bool $user_id ID of the new user, false if BP_SIGNUPS_SKIP_USER_CREATION is true. … … 2322 2379 /** 2323 2380 * Redirect away from wp-signup.php if BP registration templates are present. 2381 * 2382 * @since 1.1.0 2324 2383 */ 2325 2384 function bp_core_wpsignup_redirect() { … … 2742 2801 */ 2743 2802 function bp_get_current_member_type() { 2803 2804 /** 2805 * Filters the "current" member type, if one is provided, in member directories. 2806 * 2807 * @since 2.3.0 2808 * 2809 * @param string $value "Current" member type. 2810 */ 2744 2811 return apply_filters( 'bp_get_current_member_type', buddypress()->current_member_type ); 2745 2812 } -
trunk/src/bp-members/bp-members-loader.php
r10652 r10711 17 17 /** 18 18 * Set up the bp-members component. 19 * 20 * @since 1.6.0 19 21 */ 20 22 function bp_setup_members() { -
trunk/src/bp-members/bp-members-screens.php
r10652 r10711 20 20 /** 21 21 * Handle the display of the profile page by loading the correct template file. 22 * 23 * @since 1.5.0 22 24 */ 23 25 function bp_members_screen_display_profile() { … … 42 44 /** 43 45 * Handle the display of the members directory index. 46 * 47 * @since 1.5.0 44 48 */ 45 49 function bp_members_screen_index() { … … 68 72 /** 69 73 * Handle the loading of the signup screen. 74 * 75 * @since 1.1.0 70 76 */ 71 77 function bp_core_screen_signup() { … … 102 108 $bp->signup->step = 'registration-disabled'; 103 109 104 // If the signup page is submitted, validate and save.110 // If the signup page is submitted, validate and save. 105 111 } elseif ( isset( $_POST['signup_submit'] ) && bp_verify_nonce_request( 'bp_new_signup' ) ) { 106 112 … … 154 160 } 155 161 156 // This situation doesn't naturally occur so bounce to website root.162 // This situation doesn't naturally occur so bounce to website root. 157 163 } else { 158 164 bp_core_redirect( bp_get_root_domain() ); … … 298 304 * Handle the loading of the Activate screen. 299 305 * 306 * @since 1.1.0 307 * 300 308 * @todo Move the actual activation process into an action in bp-members-actions.php 301 309 */ -
trunk/src/bp-members/bp-members-template.php
r10690 r10711 293 293 * global, enabling the use of BuddyPress templates and template functions to 294 294 * display a list of members. 295 * 296 * @since 1.2.0 295 297 * 296 298 * @global object $members_template {@link BP_Members_Template} … … 439 441 * Set up the current member inside the loop. 440 442 * 443 * @since 1.2.0 444 * 441 445 * @return object 442 446 */ … … 449 453 * Check whether there are more members to iterate over. 450 454 * 455 * @since 1.2.0 456 * 451 457 * @return bool 452 458 */ … … 458 464 /** 459 465 * Output the members pagination count. 466 * 467 * @since 1.2.0 460 468 */ 461 469 function bp_members_pagination_count() { … … 464 472 /** 465 473 * Generate the members pagination count. 474 * 475 * @since 1.5.0 466 476 * 467 477 * @return string … … 516 526 /** 517 527 * Output the members pagination links. 528 * 529 * @since 1.2.0 518 530 */ 519 531 function bp_members_pagination_links() { … … 523 535 * Fetch the members pagination links. 524 536 * 537 * @since 1.2.0 538 * 525 539 * @return string 526 540 */ … … 541 555 * Output the ID of the current member in the loop. 542 556 * 557 * @since 1.2.0 558 * 543 559 * @uses bp_get_member_user_id() 544 560 */ … … 548 564 /** 549 565 * Get the ID of the current member in the loop. 566 * 567 * @since 1.2.0 550 568 * 551 569 * @return string Member ID. … … 581 599 * 582 600 * @param array $classes Array of custom classes. 583 *584 601 * @return string Row class of the member 585 602 */ … … 592 609 $classes[] = ( $pos_in_loop % 2 ) ? 'even' : 'odd'; 593 610 594 // If we've only one member in the loop, don't bother with odd and even.611 // If we've only one member in the loop, don't bother with odd and even. 595 612 } else { 596 613 $classes[] = 'bp-single-member'; … … 639 656 /** 640 657 * Output nicename of current member in the loop. 658 * 659 * @since 1.2.5 641 660 */ 642 661 function bp_member_user_nicename() { … … 646 665 * Get the nicename of the current member in the loop. 647 666 * 667 * @since 1.2.5 668 * 648 669 * @return string Members nicename. 649 670 */ … … 663 684 /** 664 685 * Output login for current member in the loop. 686 * 687 * @since 1.2.5 665 688 */ 666 689 function bp_member_user_login() { … … 670 693 * Get the login of the current member in the loop. 671 694 * 695 * @since 1.2.5 696 * 672 697 * @return string Member's login. 673 698 */ … … 687 712 /** 688 713 * Output the email address for the current member in the loop. 714 * 715 * @since 1.2.5 689 716 */ 690 717 function bp_member_user_email() { … … 694 721 * Get the email address of the current member in the loop. 695 722 * 723 * @since 1.2.5 724 * 696 725 * @return string Member's email address. 697 726 */ … … 712 741 * Check whether the current member in the loop is the logged-in user. 713 742 * 743 * @since 1.2.5 744 * 714 745 * @return bool 715 746 */ … … 730 761 * Output a member's avatar. 731 762 * 763 * @since 1.2.0 764 * 732 765 * @see bp_get_member_avatar() for description of arguments. 733 766 * … … 747 780 /** 748 781 * Get a member's avatar. 782 * 783 * @since 1.2.0 749 784 * 750 785 * @see bp_core_fetch_avatar() For a description of arguments and … … 794 829 /** 795 830 * Output the permalink for the current member in the loop. 831 * 832 * @since 1.2.0 796 833 */ 797 834 function bp_member_permalink() { … … 801 838 * Get the permalink for the current member in the loop. 802 839 * 840 * @since 1.2.0 841 * 803 842 * @return string 804 843 */ … … 818 857 /** 819 858 * Alias of {@link bp_member_permalink()}. 859 * 860 * @since 1.2.0 820 861 */ 821 862 function bp_member_link() { echo bp_get_member_permalink(); } … … 823 864 /** 824 865 * Alias of {@link bp_get_member_permalink()}. 866 * 867 * @since 1.2.0 825 868 */ 826 869 function bp_get_member_link() { return bp_get_member_permalink(); } … … 828 871 /** 829 872 * Output display name of current member in the loop. 873 * 874 * @since 1.2.0 830 875 */ 831 876 function bp_member_name() { … … 847 892 * WP users table, in the following order of preference: display_name, 848 893 * user_nicename, user_login. 894 * 895 * @since 1.2.0 849 896 * 850 897 * @return string The user's fullname for display. … … 888 935 * Output the current member's last active time. 889 936 * 937 * @since 1.2.0 938 * 890 939 * @param array $args See {@link bp_get_member_last_active()}. 891 940 */ … … 895 944 /** 896 945 * Return the current member's last active time. 946 * 947 * @since 1.2.0 897 948 * 898 949 * @param array $args { … … 926 977 : bp_core_time_since( $members_template->member->last_activity ); 927 978 928 // Member has never logged in or been active.979 // Member has never logged in or been active. 929 980 } else { 930 981 $last_activity = __( 'Never active', 'buddypress' ); … … 945 996 * Output the latest update of the current member in the loop. 946 997 * 998 * @since 1.2.0 999 * 947 1000 * @param array|string $args Array of arguments for latest update. 948 1001 */ … … 952 1005 /** 953 1006 * Get the latest update from the current member in the loop. 1007 * 1008 * @since 1.2.0 954 1009 * 955 1010 * @param array|string $args { … … 1007 1062 * Output a piece of user profile data. 1008 1063 * 1064 * @since 1.2.0 1065 * 1009 1066 * @see bp_get_member_profile_data() for a description of params. 1010 1067 * … … 1020 1077 * to fetch profile data cached in the template global. It is also safe 1021 1078 * to use outside of the loop. 1079 * 1080 * @since 1.2.0 1022 1081 * 1023 1082 * @param array|string $args { … … 1088 1147 /** 1089 1148 * Output the 'registered [x days ago]' string for the current member. 1149 * 1150 * @since 1.2.0 1090 1151 */ 1091 1152 function bp_member_registered() { … … 1095 1156 * Get the 'registered [x days ago]' string for the current member. 1096 1157 * 1158 * @since 1.2.0 1159 * 1097 1160 * @return string 1098 1161 */ … … 1114 1177 /** 1115 1178 * Output a random piece of profile data for the current member in the loop. 1179 * 1180 * @since 1.2.0 1116 1181 */ 1117 1182 function bp_member_random_profile_data() { … … 1127 1192 /** 1128 1193 * Output hidden input for preserving member search params on form submit. 1194 * 1195 * @since 1.2.0 1129 1196 */ 1130 1197 function bp_member_hidden_fields() { … … 1146 1213 /** 1147 1214 * Output the Members directory search form. 1215 * 1216 * @since 1.0.0 1148 1217 */ 1149 1218 function bp_directory_members_search_form() { … … 1174 1243 /** 1175 1244 * Output the total member count. 1245 * 1246 * @since 1.2.0 1176 1247 */ 1177 1248 function bp_total_site_member_count() { … … 1181 1252 * Get the total site member count. 1182 1253 * 1254 * @since 1.2.0 1255 * 1183 1256 * @return int 1184 1257 */ … … 1208 1281 * The function will also analyze the current component the user is in, to 1209 1282 * determine whether or not to highlight a particular nav item. 1283 * 1284 * @since 1.1.0 1210 1285 * 1211 1286 * @todo Move to a back-compat file? … … 1253 1328 /** 1254 1329 * Render the navigation markup for the displayed user. 1330 * 1331 * @since 1.1.0 1255 1332 */ 1256 1333 function bp_get_displayed_user_nav() { … … 1306 1383 * Output the logged-in user's avatar. 1307 1384 * 1385 * @since 1.1.0 1386 * 1308 1387 * @see bp_get_loggedin_user_avatar() for a description of params. 1309 1388 * … … 1315 1394 /** 1316 1395 * Get the logged-in user's avatar. 1396 * 1397 * @since 1.1.0 1317 1398 * 1318 1399 * @see bp_core_fetch_avatar() For a description of arguments and … … 1355 1436 * Output the displayed user's avatar. 1356 1437 * 1438 * @since 1.1.0 1439 * 1357 1440 * @see bp_get_displayed_user_avatar() for a description of params. 1358 1441 * … … 1364 1447 /** 1365 1448 * Get the displayed user's avatar. 1449 * 1450 * @since 1.1.0 1366 1451 * 1367 1452 * @see bp_core_fetch_avatar() For a description of arguments and … … 1403 1488 /** 1404 1489 * Output the email address of the displayed user. 1490 * 1491 * @since 1.5.0 1405 1492 */ 1406 1493 function bp_displayed_user_email() { … … 1409 1496 /** 1410 1497 * Get the email address of the displayed user. 1498 * 1499 * @since 1.5.0 1411 1500 * 1412 1501 * @return string … … 1434 1523 * Output the "active [x days ago]" string for a user. 1435 1524 * 1525 * @since 1.0.0 1526 * 1436 1527 * @see bp_get_last_activity() for a description of parameters. 1437 1528 * … … 1451 1542 /** 1452 1543 * Get the "active [x days ago]" string for a user. 1544 * 1545 * @since 1.5.0 1453 1546 * 1454 1547 * @param int $user_id ID of the user. Default: displayed user ID. … … 1474 1567 /** 1475 1568 * Output the calculated first name of the displayed or logged-in user. 1569 * 1570 * @since 1.2.0 1476 1571 */ 1477 1572 function bp_user_firstname() { … … 1482 1577 * 1483 1578 * Simply takes all the characters before the first space in a name. 1579 * 1580 * @since 1.2.0 1484 1581 * 1485 1582 * @param string|bool $name Full name to use when generating first name. … … 1513 1610 /** 1514 1611 * Output the link for the logged-in user's profile. 1612 * 1613 * @since 1.2.4 1515 1614 */ 1516 1615 function bp_loggedin_user_link() { … … 1520 1619 * Get the link for the logged-in user's profile. 1521 1620 * 1621 * @since 1.0.0 1622 * 1522 1623 * @return string 1523 1624 */ … … 1536 1637 /** 1537 1638 * Output the link for the displayed user's profile. 1639 * 1640 * @since 1.2.4 1538 1641 */ 1539 1642 function bp_displayed_user_link() { … … 1543 1646 * Get the link for the displayed user's profile. 1544 1647 * 1648 * @since 1.0.0 1649 * 1545 1650 * @return string 1546 1651 */ … … 1566 1671 /** 1567 1672 * Alias of {@link bp_displayed_user_id()}. 1673 * 1674 * @since 1.0.0 1568 1675 */ 1569 1676 function bp_current_user_id() { return bp_displayed_user_id(); } … … 1571 1678 /** 1572 1679 * Generate the link for the displayed user's profile. 1680 * 1681 * @since 1.0.0 1573 1682 * 1574 1683 * @return string … … 1590 1699 * Generate the link for the logged-in user's profile. 1591 1700 * 1701 * @since 1.0.0 1702 * 1592 1703 * @return string 1593 1704 */ … … 1607 1718 /** 1608 1719 * Output the displayed user's display name. 1720 * 1721 * @since 1.0.0 1609 1722 */ 1610 1723 function bp_displayed_user_fullname() { … … 1614 1727 * Get the displayed user's display name. 1615 1728 * 1729 * @since 1.2.0 1730 * 1616 1731 * @return string 1617 1732 */ … … 1631 1746 /** 1632 1747 * Alias of {@link bp_get_displayed_user_fullname()}. 1748 * 1749 * @since 1.0.0 1633 1750 */ 1634 1751 function bp_user_fullname() { echo bp_get_displayed_user_fullname(); } … … 1637 1754 /** 1638 1755 * Output the logged-in user's display name. 1756 * 1757 * @since 1.0.0 1639 1758 */ 1640 1759 function bp_loggedin_user_fullname() { … … 1644 1763 * Get the logged-in user's display name. 1645 1764 * 1765 * @since 1.0.0 1766 * 1646 1767 * @return string 1647 1768 */ … … 1661 1782 /** 1662 1783 * Output the username of the displayed user. 1784 * 1785 * @since 1.2.0 1663 1786 */ 1664 1787 function bp_displayed_user_username() { … … 1667 1790 /** 1668 1791 * Get the username of the displayed user. 1792 * 1793 * @since 1.2.0 1669 1794 * 1670 1795 * @return string … … 1691 1816 /** 1692 1817 * Output the username of the logged-in user. 1818 * 1819 * @since 1.2.0 1693 1820 */ 1694 1821 function bp_loggedin_user_username() { … … 1697 1824 /** 1698 1825 * Get the username of the logged-in user. 1826 * 1827 * @since 1.2.0 1699 1828 * 1700 1829 * @return string … … 1738 1867 $message = sprintf( __( 'Viewing members of the type: %s', 'buddypress' ), '<strong>' . $type_object->labels['singular_name'] . '</strong>' ); 1739 1868 1869 /** 1870 * Filters the current member type message. 1871 * 1872 * @since 2.3.0 1873 * 1874 * @param string $message Message to filter. 1875 */ 1740 1876 return apply_filters( 'bp_get_current_member_type_message', $message ); 1741 1877 } … … 1764 1900 /** 1765 1901 * Output the URL to the signup page. 1902 * 1903 * @since 1.0.0 1766 1904 */ 1767 1905 function bp_signup_page() { … … 1770 1908 /** 1771 1909 * Get the URL to the signup page. 1910 * 1911 * @since 1.1.0 1772 1912 * 1773 1913 * @return string … … 1797 1937 * @uses bp_get_activate_slug() To make sure there is a slug assigned to the page. 1798 1938 * @uses bp_locate_template() To make sure a template exists to provide output. 1939 * 1799 1940 * @return boolean True if page and template exist, false if not. 1800 1941 */ … … 1810 1951 /** 1811 1952 * Output the URL of the activation page. 1953 * 1954 * @since 1.0.0 1812 1955 */ 1813 1956 function bp_activation_page() { … … 1816 1959 /** 1817 1960 * Get the URL of the activation page. 1961 * 1962 * @since 1.2.0 1818 1963 * 1819 1964 * @return string … … 1838 1983 /** 1839 1984 * Output the username submitted during signup. 1985 * 1986 * @since 1.1.0 1840 1987 */ 1841 1988 function bp_signup_username_value() { … … 1844 1991 /** 1845 1992 * Get the username submitted during signup. 1993 * 1994 * @since 1.1.0 1846 1995 * 1847 1996 * @todo This should be properly escaped. … … 1866 2015 /** 1867 2016 * Output the user email address submitted during signup. 2017 * 2018 * @since 1.1.0 1868 2019 */ 1869 2020 function bp_signup_email_value() { … … 1872 2023 /** 1873 2024 * Get the email address submitted during signup. 2025 * 2026 * @since 1.1.0 1874 2027 * 1875 2028 * @todo This should be properly escaped. … … 1894 2047 /** 1895 2048 * Output the 'signup_with_blog' value submitted during signup. 2049 * 2050 * @since 1.1.0 1896 2051 */ 1897 2052 function bp_signup_with_blog_value() { … … 1900 2055 /** 1901 2056 * Get the 'signup_with_blog' value submitted during signup. 2057 * 2058 * @since 1.1.0 1902 2059 * 1903 2060 * @return string … … 1920 2077 /** 1921 2078 * Output the 'signup_blog_url' value submitted at signup. 2079 * 2080 * @since 1.1.0 1922 2081 */ 1923 2082 function bp_signup_blog_url_value() { … … 1926 2085 /** 1927 2086 * Get the 'signup_blog_url' value submitted at signup. 2087 * 2088 * @since 1.1.0 1928 2089 * 1929 2090 * @todo Should be properly escaped. … … 1982 2143 /** 1983 2144 * Output the 'signup_blog_titl' value submitted at signup. 2145 * 2146 * @since 1.1.0 1984 2147 */ 1985 2148 function bp_signup_blog_title_value() { … … 1988 2151 /** 1989 2152 * Get the 'signup_blog_title' value submitted at signup. 2153 * 2154 * @since 1.1.0 1990 2155 * 1991 2156 * @todo Should be properly escaped. … … 2010 2175 /** 2011 2176 * Output the 'signup_blog_privacy' value submitted at signup. 2177 * 2178 * @since 1.1.0 2012 2179 */ 2013 2180 function bp_signup_blog_privacy_value() { … … 2016 2183 /** 2017 2184 * Get the 'signup_blog_privacy' value submitted at signup. 2185 * 2186 * @since 1.1.0 2018 2187 * 2019 2188 * @todo Should be properly escaped. … … 2038 2207 /** 2039 2208 * Output the avatar dir used during signup. 2209 * 2210 * @since 1.1.0 2040 2211 */ 2041 2212 function bp_signup_avatar_dir_value() { … … 2044 2215 /** 2045 2216 * Get the avatar dir used during signup. 2217 * 2218 * @since 1.1.0 2046 2219 * 2047 2220 * @return string … … 2074 2247 /** 2075 2248 * Output the current signup step. 2249 * 2250 * @since 1.1.0 2076 2251 */ 2077 2252 function bp_current_signup_step() { … … 2081 2256 * Get the current signup step. 2082 2257 * 2258 * @since 1.1.0 2259 * 2083 2260 * @return string 2084 2261 */ … … 2090 2267 * Output the user avatar during signup. 2091 2268 * 2269 * @since 1.1.0 2270 * 2092 2271 * @see bp_get_signup_avatar() for description of arguments. 2093 2272 * … … 2099 2278 /** 2100 2279 * Get the user avatar during signup. 2280 * 2281 * @since 1.1.0 2101 2282 * 2102 2283 * @see bp_core_fetch_avatar() for description of arguments. … … 2136 2317 ) ); 2137 2318 2138 // No avatar DIR was found.2319 // No avatar DIR was found. 2139 2320 } else { 2140 2321 … … 2173 2354 * Output whether signup is allowed. 2174 2355 * 2356 * @since 1.1.0 2357 * 2175 2358 * @todo Remove this function. Echoing a bool is pointless. 2176 2359 */ … … 2180 2363 /** 2181 2364 * Is user signup allowed? 2365 * 2366 * @since 1.1.0 2182 2367 * 2183 2368 * @return bool … … 2229 2414 * Output a link to a members component subpage. 2230 2415 * 2416 * @since 1.5.0 2417 * 2231 2418 * @see bp_get_members_component_link() for description of parameters. 2232 2419 * … … 2241 2428 /** 2242 2429 * Generate a link to a members component subpage. 2430 * 2431 * @since 1.5.0 2243 2432 * 2244 2433 * @param string $component ID of the component (eg 'friends'). -
trunk/src/bp-members/classes/class-bp-core-members-template.php
r10521 r10711 14 14 * 15 15 * Responsible for loading a group of members into a loop for display. 16 * 17 * @since 1.0.0 16 18 */ 17 19 class BP_Core_Members_Template { … … 20 22 * The loop iterator. 21 23 * 24 * @since 1.0.0 22 25 * @var int 23 26 */ … … 27 30 * The number of members returned by the paged query. 28 31 * 32 * @since 1.0.0 29 33 * @var int 30 34 */ … … 34 38 * Array of members located by the query. 35 39 * 40 * @since 1.0.0 36 41 * @var array 37 42 */ … … 41 46 * The member object currently being iterated on. 42 47 * 48 * @since 1.0.0 43 49 * @var object 44 50 */ … … 48 54 * A flag for whether the loop is currently being iterated. 49 55 * 56 * @since 1.0.0 50 57 * @var bool 51 58 */ … … 55 62 * The type of member being requested. Used for ordering results. 56 63 * 64 * @since 2.3.0 57 65 * @var string 58 66 */ … … 62 70 * The unique string used for pagination queries. 63 71 * 72 * @since 2.2.0 64 73 * @var string 65 74 */ … … 69 78 * The page number being requested. 70 79 * 80 * @since 1.0.0 71 81 * @var string 72 82 */ … … 76 86 * The number of items being requested per page. 77 87 * 88 * @since 1.0.0 78 89 * @var string 79 90 */ … … 83 94 * An HTML string containing pagination links. 84 95 * 96 * @since 1.0.0 85 97 * @var string 86 98 */ … … 90 102 * The total number of members matching the query parameters. 91 103 * 104 * @since 1.0.0 92 105 * @var int 93 106 */ … … 96 109 /** 97 110 * Constructor method. 111 * 112 * @since 1.5.0 98 113 * 99 114 * @see BP_User_Query for an in-depth description of parameters. … … 185 200 * Whether there are members available in the loop. 186 201 * 202 * @since 1.0.0 203 * 187 204 * @see bp_has_members() 188 205 * … … 199 216 * Set up the next member and iterate index. 200 217 * 218 * @since 1.0.0 219 * 201 220 * @return object The next member to iterate over. 202 221 */ … … 210 229 /** 211 230 * Rewind the members and reset member index. 231 * 232 * @since 1.0.0 212 233 */ 213 234 function rewind_members() { … … 224 245 * that controls iteration inside the members loop, eg: 225 246 * while ( bp_members() ) { ... 247 * 248 * @since 1.2.0 226 249 * 227 250 * @see bp_members() … … 255 278 * reference to the current member. 256 279 * 280 * @since 1.0.0 281 * 257 282 * @see bp_the_member() 258 283 */ -
trunk/src/bp-members/classes/class-bp-core-members-widget.php
r10553 r10711 20 20 /** 21 21 * Constructor method. 22 * 23 * @since 1.5.0 22 24 */ 23 25 public function __construct() { … … 41 43 /** 42 44 * Display the Members widget. 45 * 46 * @since 1.0.3 43 47 * 44 48 * @see WP_Widget::widget() for description of parameters. … … 160 164 * Update the Members widget options. 161 165 * 166 * @since 1.0.3 167 * 162 168 * @param array $new_instance The new instance options. 163 169 * @param array $old_instance The old instance options. … … 178 184 * Output the Members widget options form. 179 185 * 186 * @since 1.0.3 187 * 180 188 * @param array $instance Widget instance settings. 181 *182 189 * @return void 183 190 */ -
trunk/src/bp-members/classes/class-bp-core-recently-active-widget.php
r10553 r10711 20 20 /** 21 21 * Constructor method. 22 * 23 * @since 1.5.0 22 24 */ 23 25 public function __construct() { … … 32 34 /** 33 35 * Display the Recently Active widget. 36 * 37 * @since 1.0.3 34 38 * 35 39 * @see WP_Widget::widget() for description of parameters. … … 107 111 * Update the Recently Active widget options. 108 112 * 113 * @since 1.0.3 114 * 109 115 * @param array $new_instance The new instance options. 110 116 * @param array $old_instance The old instance options. … … 121 127 /** 122 128 * Output the Recently Active widget options form. 129 * 130 * @since 1.0.3 123 131 * 124 132 * @param array $instance Widget instance settings. -
trunk/src/bp-members/classes/class-bp-core-whos-online-widget.php
r10553 r10711 20 20 /** 21 21 * Constructor method. 22 * 23 * @since 1.5.0 22 24 */ 23 25 public function __construct() { … … 32 34 /** 33 35 * Display the Who's Online widget. 36 * 37 * @since 1.0.3 34 38 * 35 39 * @see WP_Widget::widget() for description of parameters. … … 107 111 * Update the Who's Online widget options. 108 112 * 113 * @since 1.0.3 114 * 109 115 * @param array $new_instance The new instance options. 110 116 * @param array $old_instance The old instance options. … … 121 127 /** 122 128 * Output the Who's Online widget options form. 129 * 130 * @since 1.0.3 123 131 * 124 132 * @param array $instance Widget instance settings. -
trunk/src/bp-members/classes/class-bp-members-component.php
r10652 r10711 13 13 /** 14 14 * Defines the BuddyPress Members Component. 15 * 16 * @since 1.5.0 15 17 */ 16 18 class BP_Members_Component extends BP_Component { … … 45 47 /** 46 48 * Include bp-members files. 49 * 50 * @since 1.5.0 47 51 * 48 52 * @see BP_Component::includes() for description of parameters. … … 114 118 'global_tables' => array( 115 119 'table_name_last_activity' => bp_core_get_table_prefix() . 'bp_activity', 116 'table_name_signups' => $wpdb->base_prefix . 'signups', // signups is a global WordPress table120 'table_name_signups' => $wpdb->base_prefix . 'signups', // Signups is a global WordPress table. 117 121 ) 118 122 ); … … 283 287 /** 284 288 * Set up the title for pages and <title>. 289 * 290 * @since 1.5.0 285 291 */ 286 292 public function setup_title() { -
trunk/src/bp-members/classes/class-bp-members-list-table.php
r10579 r10711 94 94 global $role; 95 95 96 // Used to reset the role 96 // Used to reset the role. 97 97 $reset_role = $role; 98 98 99 // Temporarly set the role to registered 99 // Temporarly set the role to registered. 100 100 $role = 'registered'; 101 101 102 // Used to reset the screen id once views are displayed 102 // Used to reset the screen id once views are displayed. 103 103 $reset_screen_id = $this->screen->id; 104 104 105 // Temporarly set the screen id to the users one 105 // Temporarly set the screen id to the users one. 106 106 $this->screen->id = 'users'; 107 107 108 // Use the parent function so that other plugins can safely add views 108 // Use the parent function so that other plugins can safely add views. 109 109 parent::views(); 110 110 111 // Reset the role 111 // Reset the role. 112 112 $role = $reset_role; 113 113 114 // Reset the screen id 114 // Reset the screen id. 115 115 $this->screen->id = $reset_screen_id; 116 116 } -
trunk/src/bp-members/classes/class-bp-members-ms-list-table.php
r10579 r10711 95 95 global $role; 96 96 97 // Used to reset the role 97 // Used to reset the role. 98 98 $reset_role = $role; 99 99 100 // Temporarly set the role to registered 100 // Temporarly set the role to registered. 101 101 $role = 'registered'; 102 102 103 // Used to reset the screen id once views are displayed 103 // Used to reset the screen id once views are displayed. 104 104 $reset_screen_id = $this->screen->id; 105 105 106 // Temporarly set the screen id to the users one 106 // Temporarly set the screen id to the users one. 107 107 $this->screen->id = 'users-network'; 108 108 109 // Use the parent function so that other plugins can safely add views 109 // Use the parent function so that other plugins can safely add views. 110 110 parent::views(); 111 111 112 // Reset the role 112 // Reset the role. 113 113 $role = $reset_role; 114 114 115 // Reset the screen id 115 // Reset the screen id. 116 116 $this->screen->id = $reset_screen_id; 117 117 } -
trunk/src/bp-members/classes/class-bp-signup.php
r10597 r10711 10 10 /** 11 11 * Class used to handle Signups. 12 * 13 * @since 2.0.0 12 14 */ 13 15 class BP_Signup { … … 16 18 * ID of the signup which the object relates to. 17 19 * 20 * @since 2.0.0 18 21 * @var integer 19 22 */ … … 23 26 * The URL to the full size of the avatar for the user. 24 27 * 28 * @since 2.0.0 25 29 * @var string 26 30 */ … … 30 34 * The username for the user. 31 35 * 36 * @since 2.0.0 32 37 * @var string 33 38 */ … … 37 42 * The email for the user. 38 43 * 44 * @since 2.0.0 39 45 * @var string 40 46 */ … … 44 50 * The full name of the user. 45 51 * 52 * @since 2.0.0 46 53 * @var string 47 54 */ … … 51 58 * Metadata associated with the signup. 52 59 * 60 * @since 2.0.0 53 61 * @var array 54 62 */ … … 58 66 * The registered date for the user. 59 67 * 68 * @since 2.0.0 60 69 * @var string 61 70 */ … … 65 74 * The activation key for the user. 66 75 * 76 * @since 2.0.0 67 77 * @var string 68 78 */
Note: See TracChangeset
for help on using the changeset viewer.