Changeset 10147
- Timestamp:
- 09/27/2015 05:08:37 AM (9 years ago)
- Location:
- trunk/src/bp-friends
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/bp-friends-actions.php
r9995 r10147 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Friends Actions. … … 12 11 */ 13 12 14 // Exit if accessed directly 13 // Exit if accessed directly. 15 14 defined( 'ABSPATH' ) || exit; 16 15 -
trunk/src/bp-friends/bp-friends-activity.php
r9995 r10147 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Friends Activity Functions. … … 11 10 */ 12 11 13 // Exit if accessed directly 12 // Exit if accessed directly. 14 13 defined( 'ABSPATH' ) || exit; 15 14 … … 117 116 * Fires after all default bp-friends activity actions have been registered. 118 117 * 119 * @since BuddyPress (1.1.0)118 * @since 1.1.0 120 119 */ 121 120 do_action( 'friends_register_activity_actions' ); … … 126 125 * Format 'friendship_accepted' activity actions. 127 126 * 128 * @since BuddyPress (2.0.0)127 * @since 2.0.0 129 128 * 130 129 * @param string $action Activity action string. … … 150 149 * Filters the 'friendship_accepted' activity action format. 151 150 * 152 * @since BuddyPress (2.0.0)151 * @since 2.0.0 153 152 * 154 153 * @param string $action String text for the 'friendship_accepted' action. … … 161 160 * Format 'friendship_created' activity actions. 162 161 * 163 * @since BuddyPress (2.0.0)162 * @since 2.0.0 164 163 * 165 164 * @param string $action Static activity action. … … 185 184 * Filters the 'friendship_created' activity action format. 186 185 * 187 * @since BuddyPress (2.0.0)186 * @since 2.0.0 188 187 * 189 188 * @param string $action String text for the 'friendship_created' action. … … 198 197 * This reduces database overhead during the activity loop. 199 198 * 200 * @since BuddyPress (2.0.0)199 * @since 2.0.0 201 200 * 202 201 * @param array $activities Array of activity items. … … 237 236 * For details on the syntax, see {@link BP_Activity_Query}. 238 237 * 239 * @since BuddyPress (2.2.0)238 * @since 2.2.0 240 239 * 241 240 * @param array $retval Empty array by default … … 291 290 * For details on the syntax, see {@link BP_Activity_Query}. 292 291 * 293 * @since BuddyPress (2.2.0)292 * @since 2.2.0 294 293 * 295 294 * @param array $retval Empty array by default … … 368 367 * for virtual friendship. 369 368 * 370 * @since BuddyPress (1.9.0)369 * @since 1.9.0 371 370 * 372 371 * @param int $friendship_id -
trunk/src/bp-friends/bp-friends-cache.php
r9995 r10147 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Friends Caching. … … 11 10 */ 12 11 13 // Exit if accessed directly 12 // Exit if accessed directly. 14 13 defined( 'ABSPATH' ) || exit; 15 14 … … 37 36 * Clear the friend request cache for the user not initiating the friendship. 38 37 * 39 * @since BuddyPress (2.0.0)38 * @since 2.0.0 40 39 * 41 40 * @param int $friend_user_id The user ID not initiating the friendship. … … 50 49 * A friendship is deemed saved when a friendship is requested or accepted. 51 50 * 52 * @since BuddyPress (2.0.0)51 * @since 2.0.0 53 52 * 54 53 * @param int $friendship_id The friendship ID. … … 67 66 * A friendship is deemed removed when a friendship is withdrawn or rejected. 68 67 * 69 * @since BuddyPress (2.0.0)68 * @since 2.0.0 70 69 * 71 70 * @param int $friendship_id The friendship ID. -
trunk/src/bp-friends/bp-friends-classes.php
r9995 r10147 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 -
trunk/src/bp-friends/bp-friends-filters.php
r10042 r10147 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Friend Filters. … … 8 7 */ 9 8 9 // Exit if accessed directly. 10 defined( 'ABSPATH' ) || exit; 11 10 12 /** 11 13 * Filter BP_User_Query::populate_extras to add confirmed friendship status. … … 14 16 * against the logged-in user. 15 17 * 16 * @since BuddyPress (1.7.0)18 * @since 1.7.0 17 19 * 18 20 * @global WPDB $wpdb WordPress database access object. -
trunk/src/bp-friends/bp-friends-functions.php
r10037 r10147 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Friends Functions. … … 13 12 */ 14 13 15 // Exit if accessed directly 14 // Exit if accessed directly. 16 15 defined( 'ABSPATH' ) || exit; 17 16 … … 75 74 * The two potential hooks are: friends_friendship_requested, friends_friendship_accepted. 76 75 * 77 * @since BuddyPress (1.0.0)76 * @since 1.0.0 78 77 * 79 78 * @param int $id ID of the pending friendship connection. … … 106 105 * for the user who canceled the friendship. 107 106 * 108 * @since BuddyPress (1.5.0)107 * @since 1.5.0 109 108 * 110 109 * @param int $friendship_id ID of the friendship object, if any, between a pair of users. … … 123 122 * This is your last chance to do something while the friendship exists. 124 123 * 125 * @since BuddyPress (1.0.0)124 * @since 1.0.0 126 125 * 127 126 * @param int $friendship_id ID of the friendship object, if any, between a pair of users. … … 137 136 * Fires after the friendship connection is removed. 138 137 * 139 * @since BuddyPress (1.8.0)138 * @since 1.8.0 140 139 * 141 140 * @param int $initiator_userid ID of the friendship initiator. … … 173 172 * Fires after a friendship is accepted. 174 173 * 175 * @since BuddyPress (1.0.0)174 * @since 1.0.0 176 175 * 177 176 * @param int $id ID of the pending friendship object. … … 203 202 * Fires after a friendship request is rejected. 204 203 * 205 * @since BuddyPress (1.0.0)204 * @since 1.0.0 206 205 * 207 206 * @param int $friendship_id ID of the pending friendship. … … 236 235 * Fires after a friendship request has been withdrawn. 237 236 * 238 * @since BuddyPress (1.9.0)237 * @since 1.9.0 239 238 * 240 239 * @param int $friendship_id ID of the friendship. … … 307 306 * Filters the total friend count for a given user. 308 307 * 309 * @since BuddyPress (1.2.0)308 * @since 1.2.0 310 309 * 311 310 * @param int $count Total friend count for a given user. … … 412 411 * Filters a user's most recently active friends. 413 412 * 414 * @since BuddyPress (1.2.0)413 * @since 1.2.0 415 414 * 416 415 * @param array { … … 442 441 * Filters a user's friends listed in alphabetical order. 443 442 * 444 * @since BuddyPress (1.2.0)443 * @since 1.2.0 445 444 * 446 445 * @return array { … … 472 471 * Filters a user's friends listed from newest to oldest. 473 472 * 474 * @since BuddyPress (1.2.0)473 * @since 1.2.0 475 474 * 476 475 * @param array { … … 502 501 * user is not a group admin. 503 502 * 504 * @since BuddyPress (1.0.0)503 * @since 1.0.0 505 504 * 506 505 * @param int $user_id User ID whose friends to see can be invited. Default: … … 525 524 * Filters default arguments for list of friends a user can invite into this group. 526 525 * 527 * @since BuddyPress (1.5.4)526 * @since 1.5.4 528 527 * 529 528 * @param array $value Array of default parameters for invite list. … … 578 577 * Filters the list of potential friends that can be invited to this group. 579 578 * 580 * @since BuddyPress (1.5.4)579 * @since 1.5.4 581 580 * 582 581 * @param array|bool $friends Array friends available to invite or false for no friends. … … 695 694 * Fires before deletion of friend-related data for a given user. 696 695 * 697 * @since BuddyPress (1.5.0)696 * @since 1.5.0 698 697 * 699 698 * @param int $user_id ID for the user whose friend data is being removed. … … 709 708 * Fires after deletion of friend-related data for a given user. 710 709 * 711 * @since BuddyPress (1.0.0)710 * @since 1.0.0 712 711 * 713 712 * @param int $user_id ID for the user whose friend data is being removed. -
trunk/src/bp-friends/bp-friends-loader.php
r9995 r10147 9 9 */ 10 10 11 // Exit if accessed directly 11 // Exit if accessed directly. 12 12 defined( 'ABSPATH' ) || exit; 13 13 … … 17 17 * Start the friends component creation process. 18 18 * 19 * @since BuddyPress (1.5.0)19 * @since 1.5.0 20 20 */ 21 21 public function __construct() { … … 60 60 * backwards compatibility. 61 61 * 62 * @since BuddyPress (1.5.0)62 * @since 1.5.0 63 63 * 64 64 * @see BP_Component::setup_globals() for description of parameters. … … 102 102 * Set up component navigation. 103 103 * 104 * @since BuddyPress (1.5.0)104 * @since 1.5.0 105 105 * 106 106 * @see BP_Component::setup_nav() for a description of arguments. … … 165 165 * Set up bp-friends integration with the WordPress admin bar. 166 166 * 167 * @since BuddyPress (1.5.0)167 * @since 1.5.0 168 168 * 169 169 * @see BP_Component::setup_admin_bar() for a description of arguments. … … 245 245 * Setup cache groups. 246 246 * 247 * @since BuddyPress (2.2.0)247 * @since 2.2.0 248 248 */ 249 249 public function setup_cache_groups() { -
trunk/src/bp-friends/bp-friends-notifications.php
r9995 r10147 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Friends Activity Functions. … … 11 10 */ 12 11 13 // Exit if accessed directly 12 // Exit if accessed directly. 14 13 defined( 'ABSPATH' ) || exit; 15 14 … … 62 61 * Filters the email address for who is getting the friend request. 63 62 * 64 * @since BuddyPress (1.2.0)63 * @since 1.2.0 65 64 * 66 65 * @param string $to Email address for who is getting the friend request. … … 71 70 * Filters the subject for the friend request email. 72 71 * 73 * @since BuddyPress (1.2.0)72 * @since 1.2.0 74 73 * 75 74 * @param string $subject Subject line to be used in friend request email. … … 81 80 * Filters the message for the friend request email. 82 81 * 83 * @since BuddyPress (1.2.0)82 * @since 1.2.0 84 83 * 85 84 * @param string $message Message to be used in friend request email. … … 96 95 * Fires after the new friend request email is sent. 97 96 * 98 * @since BuddyPress (1.5.0)97 * @since 1.5.0 99 98 * 100 99 * @param int $friend_id ID of the request recipient. … … 151 150 * Filters the email address for whose friend request got accepted. 152 151 * 153 * @since BuddyPress (1.2.0)152 * @since 1.2.0 154 153 * 155 154 * @param string $to Email address for whose friend request got accepted. … … 160 159 * Filters the subject for the friend request accepted email. 161 160 * 162 * @since BuddyPress (1.2.0)161 * @since 1.2.0 163 162 * 164 163 * @param string $subject Subject line to be used in friend request accepted email. … … 170 169 * Filters the message for the friend request accepted email. 171 170 * 172 * @since BuddyPress (1.2.0)171 * @since 1.2.0 173 172 * 174 173 * @param string $message Message to be used in friend request email. … … 184 183 * Fires after the friend request accepted email is sent. 185 184 * 186 * @since BuddyPress (1.5.0)185 * @since 1.5.0 187 186 * 188 187 * @param int $initiator_id ID of the friendship requester. … … 261 260 * - bp_friends_multiple_friendship_request_notification 262 261 * 263 * @since BuddyPress (1.0.0)262 * @since 1.0.0 264 263 * 265 264 * @param string|array $value Depending on format, an HTML link to new requests profile … … 281 280 * Fires at the end of the bp-friends notification format callback. 282 281 * 283 * @since BuddyPress (1.0.0)282 * @since 1.0.0 284 283 * 285 284 * @param string $action The kind of notification being rendered. … … 308 307 * Delete any friendship request notifications for the logged in user. 309 308 * 310 * @since BuddyPress (1.9.0)309 * @since 1.9.0 311 310 */ 312 311 function bp_friends_mark_friendship_request_notifications_by_type() { … … 320 319 * Delete any friendship acceptance notifications for the logged in user. 321 320 * 322 * @since BuddyPress (1.9.0)321 * @since 1.9.0 323 322 */ 324 323 function bp_friends_mark_friendship_accepted_notifications_by_type() { … … 332 331 * Notify one use that another user has requested their virtual friendship. 333 332 * 334 * @since BuddyPress (1.9.0)333 * @since 1.9.0 335 334 * @param int $friendship_id The unique ID of the friendship. 336 335 * @param int $initiator_user_id The friendship initiator user ID. … … 355 354 * Remove friend request notice when a member rejects another members 356 355 * 357 * @since BuddyPress (1.9.0)356 * @since 1.9.0 358 357 * 359 358 * @param int $friendship_id (not used) … … 370 369 * Notify a member when another member accepts their virtual friendship request. 371 370 * 372 * @since BuddyPress (1.9.0)371 * @since 1.9.0 373 372 * 374 373 * @param int $friendship_id The unique ID of the friendship. … … 402 401 * Remove friend request notice when a member withdraws their friend request. 403 402 * 404 * @since BuddyPress (1.9.0)403 * @since 1.9.0 405 404 * 406 405 * @param int $friendship_id (not used) … … 417 416 * Remove friendship requests FROM user, used primarily when a user is deleted. 418 417 * 419 * @since BuddyPress (1.9.0)418 * @since 1.9.0 420 419 * 421 420 * @param int $user_id -
trunk/src/bp-friends/bp-friends-screens.php
r10081 r10147 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Friends Screen Functions. … … 12 11 */ 13 12 14 // Exit if accessed directly 13 // Exit if accessed directly. 15 14 defined( 'ABSPATH' ) || exit; 16 15 … … 23 22 * Fires before the loading of template for the My Friends page. 24 23 * 25 * @since BuddyPress (1.0.0)24 * @since 1.0.0 26 25 */ 27 26 do_action( 'friends_screen_my_friends' ); … … 30 29 * Filters the template used to display the My Friends page. 31 30 * 32 * @since BuddyPress (1.0.0)31 * @since 1.0.0 33 32 * 34 33 * @param string $template Path to the my friends template to load. … … 78 77 * Fires before the loading of template for the friends requests page. 79 78 * 80 * @since BuddyPress (1.0.0)79 * @since 1.0.0 81 80 */ 82 81 do_action( 'friends_screen_requests' ); … … 85 84 * Filters the template used to display the My Friends page. 86 85 * 87 * @since BuddyPress (1.0.0)86 * @since 1.0.0 88 87 * 89 88 * @param string $template Path to the friends request template to load. … … 132 131 * Fires after the last table row on the friends notification screen. 133 132 * 134 * @since BuddyPress (1.0.0)133 * @since 1.0.0 135 134 */ 136 135 do_action( 'friends_screen_notification_settings' ); ?> -
trunk/src/bp-friends/bp-friends-template.php
r9995 r10147 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Friends Template Functions. … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 … … 14 13 * Output the friends component slug. 15 14 * 16 * @since BuddyPress (1.5.0)15 * @since 1.5.0 17 16 * 18 17 * @uses bp_get_friends_slug() … … 24 23 * Return the friends component slug. 25 24 * 26 * @since BuddyPress (1.5.0)25 * @since 1.5.0 27 26 */ 28 27 function bp_get_friends_slug() { … … 31 30 * Filters the friends component slug. 32 31 * 33 * @since BuddyPress (1.5.0)32 * @since 1.5.0 34 33 * 35 34 * @param string $value Friends component slug. … … 41 40 * Output the friends component root slug. 42 41 * 43 * @since BuddyPress (1.5.0)42 * @since 1.5.0 44 43 * 45 44 * @uses bp_get_friends_root_slug() … … 51 50 * Return the friends component root slug. 52 51 * 53 * @since BuddyPress (1.5.0)52 * @since 1.5.0 54 53 */ 55 54 function bp_get_friends_root_slug() { … … 58 57 * Filters the friends component root slug. 59 58 * 60 * @since BuddyPress (1.5.0)59 * @since 1.5.0 61 60 * 62 61 * @param string $value Friends component root slug. … … 206 205 * Output the "Add Friend" button in the member loop. 207 206 * 208 * @since BuddyPress (1.2.6)207 * @since 1.2.6 209 208 */ 210 209 function bp_member_add_friend_button() { … … 234 233 * Filters text used to denote total friend count. 235 234 * 236 * @since BuddyPress (1.2.0)235 * @since 1.2.0 237 236 * 238 237 * @param string $value String of the form "x friends". … … 278 277 * Filters the ID of current user in the friend request loop. 279 278 * 280 * @since BuddyPress (1.2.10)279 * @since 1.2.10 281 280 * 282 281 * @param int $user_id ID of current user in the friend request loop. … … 309 308 * Filters the status of friendship between logged in user and given user. 310 309 * 311 * @since BuddyPress (1.2.10)310 * @since 1.2.10 312 311 * 313 312 * @param string $value String status of friendship. Possible values are 'is_friend', 'not_friends', 'pending'. … … 419 418 * Filters the HTML for the add friend button. 420 419 * 421 * @since BuddyPress (1.1.0)420 * @since 1.1.0 422 421 * 423 422 * @param string $button HTML markup for add friend button. … … 479 478 * Filters the total pending friendship requests for a user. 480 479 * 481 * @since BuddyPress (1.2.0)480 * @since 1.2.0 482 481 * 483 482 * @param array|int An array of user IDs if found, or a 0 if none are found. … … 508 507 * Filters the ID of the friendship between the logged in user and the current user in the loop. 509 508 * 510 * @since BuddyPress (1.2.0)509 * @since 1.2.0 511 510 * 512 511 * @param int $friendship_id ID of the friendship. … … 537 536 * Filters the URL for accepting the current friendship request in the loop. 538 537 * 539 * @since BuddyPress (1.0.0)538 * @since 1.0.0 540 539 * 541 540 * @param string $value Accept-friendship URL. … … 566 565 * Filters the URL for rejecting the current friendship request in the loop. 567 566 * 568 * @since BuddyPress (1.0.0)567 * @since 1.0.0 569 568 * 570 569 * @param string $value Reject-friendship URL. … … 593 592 * Filters the total friend count for a given user. 594 593 * 595 * @since BuddyPress (1.2.0)594 * @since 1.2.0 596 595 * 597 596 * @param int $value Total friend count. … … 626 625 * Filters the total friendship request count for a given user. 627 626 * 628 * @since BuddyPress (1.2.0)627 * @since 1.2.0 629 628 * 630 629 * @param int $value Friendship request count. … … 638 637 * Display the number of friends in user's profile. 639 638 * 640 * @since BuddyPress (2.0.0)639 * @since 2.0.0 641 640 * 642 641 * @uses bp_friends_get_profile_stats() to get the stats. … … 652 651 * Return the number of friends in user's profile. 653 652 * 654 * @since BuddyPress (2.0.0)653 * @since 2.0.0 655 654 * 656 655 * @param array|string $args before|after|user_id … … 688 687 * Filters the number of friends in user's profile. 689 688 * 690 * @since BuddyPress (2.0.0)689 * @since 2.0.0 691 690 * 692 691 * @param string $value Formatted string displaying total friends count. -
trunk/src/bp-friends/bp-friends-widgets.php
r10113 r10147 5 5 * @package BuddyPress 6 6 * @subpackage Friends 7 * @since BuddyPress (1.9.0)8 */ 9 10 // Exit if accessed directly 7 * @since 1.9.0 8 */ 9 10 // Exit if accessed directly. 11 11 defined( 'ABSPATH' ) || exit; 12 12 … … 14 14 * Register the friends widget. 15 15 * 16 * @since BuddyPress (1.9.0)16 * @since 1.9.0 17 17 */ 18 18 function bp_friends_register_widgets() { … … 37 37 * The User Friends widget class. 38 38 * 39 * @since BuddyPress (1.9.0)39 * @since 1.9.0 40 40 */ 41 41 class BP_Core_Friends_Widget extends WP_Widget { … … 80 80 * Filters the Friends widget title. 81 81 * 82 * @since BuddyPress (1.8.0)83 * @since BuddyPress (2.3.0)Added 'instance' and 'id_base' to arguments passed to filter.82 * @since 1.8.0 83 * @since 2.3.0 Added 'instance' and 'id_base' to arguments passed to filter. 84 84 * 85 85 * @param string $title The widget title. … … 212 212 * Process AJAX pagination or filtering for the Friends widget. 213 213 * 214 * @since BuddyPress (1.9.0)214 * @since 1.9.0 215 215 */ 216 216 function bp_core_ajax_widget_friends() { -
trunk/src/bp-friends/classes/class-bp-friends-friendship.php
r9995 r10147 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 152 152 * Fires before processing and saving the current friendship request. 153 153 * 154 * @since BuddyPress (1.0.0)154 * @since 1.0.0 155 155 * 156 156 * @param Object $value Current friendship request object. … … 171 171 * Fires after processing and saving the current friendship request. 172 172 * 173 * @since BuddyPress (1.0.0)173 * @since 1.0.0 174 174 * 175 175 * @param Object $value Current friendship request object.
Note: See TracChangeset
for help on using the changeset viewer.