Changeset 10785
- Timestamp:
- 05/19/2016 03:46:29 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-template.php
r10784 r10785 3015 3015 * 3016 3016 * @since 1.1.0 3017 * @since 2.6.0 Added the `$r` parameter. 3017 3018 * 3018 3019 * @param string $value All of the links to be displayed to the user. 3019 */ 3020 return apply_filters( 'bp_get_activity_filter_links', implode( "\n", $component_links ) ); 3020 * @param array $r Array of parsed arguments. 3021 */ 3022 return apply_filters( 'bp_get_activity_filter_links', implode( "\n", $component_links ), $r ); 3021 3023 } 3022 3024 -
trunk/src/bp-blogs/bp-blogs-template.php
r10783 r10785 632 632 * 633 633 * @since 1.2.0 634 * @since 2.6.0 Added the `$r` parameter. 634 635 * 635 636 * @param string $retval HTML markup for the latest post. 636 */ 637 return apply_filters( 'bp_get_blog_latest_post', $retval ); 637 * @param array $r Array of parsed arguments. 638 */ 639 return apply_filters( 'bp_get_blog_latest_post', $retval, $r ); 638 640 } 639 641 -
trunk/src/bp-members/bp-members-template.php
r10779 r10785 431 431 * 432 432 * @since 1.2.4 433 * @since 2.6.0 Added the `$r` parameter 433 434 * 434 435 * @param bool $value Whether or not there are members to iterate over. 435 436 * @param array $members_template Populated $members_template global. 436 */ 437 return apply_filters( 'bp_has_members', $members_template->has_members(), $members_template ); 437 * @param array $r Array of arguments passed into the BP_Core_Members_Template class. 438 */ 439 return apply_filters( 'bp_has_members', $members_template->has_members(), $members_template, $r ); 438 440 } 439 441 … … 773 775 * 774 776 * @since 1.2.0 775 * 776 * @param string $value Formatted HTML <img> element, or raw avatar URL based on $html arg. 777 */ 778 echo apply_filters( 'bp_member_avatar', bp_get_member_avatar( $args ) ); 777 * @since 2.6.0 Added the `$args` parameter. 778 * 779 * @param string $value Formatted HTML <img> element, or raw avatar URL based on $html arg. 780 * @param array|string $args See {@link bp_get_member_avatar()}. 781 */ 782 echo apply_filters( 'bp_member_avatar', bp_get_member_avatar( $args ), $args ); 779 783 } 780 784 /** … … 821 825 * 822 826 * @since 1.2.0 827 * @since 2.6.0 Added the `$r` parameter. 823 828 * 824 829 * @param string $value Formatted HTML <img> element, or raw avatar URL based on $html arg. 825 */ 826 return apply_filters( 'bp_get_member_avatar', bp_core_fetch_avatar( array( 'item_id' => $members_template->member->id, 'type' => $type, 'alt' => $alt, 'css_id' => $id, 'class' => $class, 'width' => $width, 'height' => $height, 'email' => $members_template->member->user_email ) ) ); 830 * @param array $r Array of parsed arguments. See {@link bp_get_member_avatar()}. 831 */ 832 return apply_filters( 'bp_get_member_avatar', bp_core_fetch_avatar( array( 'item_id' => $members_template->member->id, 'type' => $type, 'alt' => $alt, 'css_id' => $id, 'class' => $class, 'width' => $width, 'height' => $height, 'email' => $members_template->member->user_email ) ), $r ); 827 833 } 828 834 … … 1034 1040 * 1035 1041 * @since 1.2.5 1042 * @since 2.6.0 Added the `$r` parameter. 1036 1043 * 1037 1044 * @param string $value Excerpt of the latest update for current member in the loop. 1038 */ 1039 $update_content = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], $length ) ) ) ); 1045 * @param array $r Array of parsed arguments. 1046 */ 1047 $update_content = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], $length ) ) ), $r ); 1040 1048 1041 1049 $update_content = sprintf( _x( '- "%s"', 'member latest update in member directory', 'buddypress' ), $update_content ); … … 1053 1061 * 1054 1062 * @since 1.2.0 1063 * @since 2.6.0 Added the `$r` parameter. 1055 1064 * 1056 1065 * @param string $update_content Formatted latest update for current member. 1057 */ 1058 return apply_filters( 'bp_get_member_latest_update', $update_content ); 1066 * @param array $r Array of parsed arguments. 1067 */ 1068 return apply_filters( 'bp_get_member_latest_update', $update_content, $r ); 1059 1069 } 1060 1070 … … 1139 1149 * 1140 1150 * @since 1.2.0 1151 * @since 2.6.0 Added the `$r` parameter. 1141 1152 * 1142 1153 * @param string|bool $data Profile data if found, otherwise false. 1154 * @param array $r Array of parsed arguments. 1143 1155 */ 1144 1156 return apply_filters( 'bp_get_member_profile_data', $data ); -
trunk/src/bp-messages/bp-messages-template.php
r10781 r10785 683 683 * 684 684 * @since 1.0.0 685 * @since 2.6.0 Added the `$r` parameter. 685 686 * 686 687 * @param string $value User avatar string. 688 * @param array $r Array of parsed arguments. 687 689 */ 688 690 return apply_filters( 'bp_get_message_thread_avatar', bp_core_fetch_avatar( array( … … 694 696 'width' => $r['width'], 695 697 'height' => $r['height'], 696 ) ) );698 ) ), $r ); 697 699 } 698 700 … … 1809 1811 * 1810 1812 * @since 1.1.0 1813 * @since 2.6.0 Added the `$r` parameter. 1811 1814 * 1812 1815 * @param string $value <img> tag containing the avatar value. 1816 * @param array $r Array of parsed arguments. 1813 1817 */ 1814 1818 return apply_filters( 'bp_get_the_thread_message_sender_avatar_thumb', bp_core_fetch_avatar( array( … … 1818 1822 'height' => $r['height'], 1819 1823 'alt' => bp_core_get_user_displayname( $thread_template->message->sender_id ) 1820 ) ) );1824 ) ), $r ); 1821 1825 } 1822 1826 -
trunk/src/bp-notifications/bp-notifications-template.php
r10725 r10785 216 216 * 217 217 * @since 1.9.0 218 * @since 2.6.0 Added the `$r` parameter. 218 219 * 219 220 * @param bool $value Whether or not there are notifications to display. 220 221 * @param BP_Notifications_Template $query_loop BP_Notifications_Template object instance. 221 */ 222 return apply_filters( 'bp_has_notifications', $query_loop->has_notifications(), $query_loop ); 222 * @param array $r Array of arguments passed into the BP_Notifications_Template class. 223 */ 224 return apply_filters( 'bp_has_notifications', $query_loop->has_notifications(), $query_loop, $r ); 223 225 } 224 226 … … 827 829 * 828 830 * @since 1.9.0 831 * @since 2.6.0 Added the `$r` parameter. 829 832 * 830 833 * @param string $retval HTML links for actions to take on single notifications. 831 */ 832 return apply_filters( 'bp_get_the_notification_action_links', $retval ); 834 * @param array $r Array of parsed arguments. 835 */ 836 return apply_filters( 'bp_get_the_notification_action_links', $retval, $r ); 833 837 } 834 838 -
trunk/src/bp-xprofile/bp-xprofile-template.php
r10780 r10785 74 74 * 75 75 * @since 1.1.0 76 * @since 2.6.0 Added the `$r` parameter. 76 77 * 77 78 * @param bool $has_groups Whether or not there are group profiles to display. 78 79 * @param string $profile_template Current profile template being used. 79 */ 80 return apply_filters( 'bp_has_profile', $profile_template->has_groups(), $profile_template ); 80 * @param array $r Array of arguments passed into the BP_XProfile_Data_Template class. 81 */ 82 return apply_filters( 'bp_has_profile', $profile_template->has_groups(), $profile_template, $r ); 81 83 } 82 84 … … 883 885 * 884 886 * @since 1.6.0 887 * @since 2.6.0 Added the `$level` parameter. 885 888 * 886 889 * @param string $retval Field visibility level label. 887 */ 888 return apply_filters( 'bp_get_the_profile_field_visibility_level_label', $fields[ $level ]['label'] ); 890 * @param string $level Field visibility level. 891 */ 892 return apply_filters( 'bp_get_the_profile_field_visibility_level_label', $fields[ $level ]['label'], $level ); 889 893 } 890 894 … … 942 946 * 943 947 * @since 1.2.0 948 * @since 2.6.0 Added the `$r` parameter. 944 949 * 945 950 * @param mixed $value Profile data for a specific field for the user. 946 */ 947 return apply_filters( 'bp_get_profile_field_data', xprofile_get_field_data( $r['field'], $r['user_id'] ) ); 951 * @param array $r Array of parsed arguments. 952 */ 953 return apply_filters( 'bp_get_profile_field_data', xprofile_get_field_data( $r['field'], $r['user_id'] ), $r ); 948 954 } 949 955
Note: See TracChangeset
for help on using the changeset viewer.