diff --git a/src/bp-activity/bp-activity-template.php b/src/bp-activity/bp-activity-template.php
index b42a0eb44..0e6b763e6 100644
|
a
|
b
|
function bp_activity_comments_user_avatars( $args = array() ) { |
| 3770 | 3770 | * |
| 3771 | 3771 | * @since 1.7.0 |
| 3772 | 3772 | * |
| | 3773 | * @global BP_Activity_Template $activities_template The main activity |
| | 3774 | * |
| 3773 | 3775 | * @return bool|array An array of IDs, or false if none are found. |
| 3774 | 3776 | */ |
| 3775 | 3777 | function bp_activity_get_comments_user_ids() { |
diff --git a/src/bp-activity/classes/class-bp-activity-activity.php b/src/bp-activity/classes/class-bp-activity-activity.php
index 148805607..d778d8e21 100644
|
a
|
b
|
class BP_Activity_Activity { |
| 173 | 173 | * Populate the object with data about the specific activity item. |
| 174 | 174 | * |
| 175 | 175 | * @since 1.0.0 |
| | 176 | * |
| | 177 | * @global wpdb $wpdb WordPress database object. |
| 176 | 178 | */ |
| 177 | 179 | public function populate() { |
| 178 | 180 | global $wpdb; |
| … |
… |
class BP_Activity_Activity { |
| 227 | 229 | * |
| 228 | 230 | * @since 1.0.0 |
| 229 | 231 | * |
| | 232 | * @global wpdb $wpdb WordPress database object. |
| | 233 | * |
| 230 | 234 | * @return WP_Error|bool True on success. |
| 231 | 235 | */ |
| 232 | 236 | public function save() { |
| … |
… |
class BP_Activity_Activity { |
| 350 | 354 | * @see WP_Meta_Query::queries for a description of the 'meta_query' |
| 351 | 355 | * parameter format. |
| 352 | 356 | * |
| | 357 | * @global wpdb $wpdb WordPress database object. |
| | 358 | * |
| 353 | 359 | * @param array $args { |
| 354 | 360 | * An array of arguments. All items are optional. |
| 355 | 361 | * @type int $page Which page of results to fetch. Using page=1 without per_page will result |
| … |
… |
class BP_Activity_Activity { |
| 881 | 887 | * |
| 882 | 888 | * @since 2.0.0 |
| 883 | 889 | * |
| | 890 | * @global wpdb $wpdb WordPress database object. |
| | 891 | * |
| 884 | 892 | * @param array $activity_ids Array of activity IDs. |
| 885 | 893 | * @return array |
| 886 | 894 | */ |
| … |
… |
class BP_Activity_Activity { |
| 1239 | 1247 | * @since 1.2.0 |
| 1240 | 1248 | * @since 10.0.0 Parameters were made optional. |
| 1241 | 1249 | * |
| | 1250 | * @global wpdb $wpdb WordPress database object. |
| | 1251 | * |
| 1242 | 1252 | * @param array $args { |
| 1243 | 1253 | * An array of arguments. All items are optional. |
| 1244 | 1254 | * @type int $user_id User ID to filter by. |
| … |
… |
class BP_Activity_Activity { |
| 1351 | 1361 | * |
| 1352 | 1362 | * @since 1.2.0 |
| 1353 | 1363 | * |
| | 1364 | * @global wpdb $wpdb WordPress database object. |
| | 1365 | * |
| 1354 | 1366 | * @param array $args { |
| 1355 | 1367 | * @int $id Optional. The ID of a specific item to delete. |
| 1356 | 1368 | * @string $action Optional. The action to filter by. |
| … |
… |
class BP_Activity_Activity { |
| 1528 | 1540 | * |
| 1529 | 1541 | * @since 1.2.0 |
| 1530 | 1542 | * |
| | 1543 | * @global wpdb $wpdb WordPress database object. |
| | 1544 | * |
| 1531 | 1545 | * @deprecated 2.3.0 |
| 1532 | 1546 | * |
| 1533 | 1547 | * @param array $activity_ids Activity IDs whose comments should be deleted. |
| … |
… |
class BP_Activity_Activity { |
| 1829 | 1843 | * |
| 1830 | 1844 | * @since 1.2.0 |
| 1831 | 1845 | * |
| | 1846 | * @global wpdb $wpdb WordPress database object. |
| | 1847 | * |
| 1832 | 1848 | * @param bool $skip_last_activity If true, components will not be |
| 1833 | 1849 | * included if the only activity type associated with them is |
| 1834 | 1850 | * 'last_activity'. (Since 2.0.0, 'last_activity' is stored in |
| … |
… |
class BP_Activity_Activity { |
| 1880 | 1896 | * |
| 1881 | 1897 | * @see BP_Activity_Activity::get_filter_sql() |
| 1882 | 1898 | * |
| | 1899 | * @global wpdb $wpdb WordPress database object. |
| | 1900 | * |
| 1883 | 1901 | * @param string $field The database field. |
| 1884 | 1902 | * @param array|bool $items The values for the IN clause, or false when none are found. |
| 1885 | 1903 | * @return string|false |
| … |
… |
class BP_Activity_Activity { |
| 2001 | 2019 | * |
| 2002 | 2020 | * @since 1.2.0 |
| 2003 | 2021 | * |
| | 2022 | * @global wpdb $wpdb WordPress database object. |
| | 2023 | * |
| 2004 | 2024 | * @return string ISO timestamp. |
| 2005 | 2025 | */ |
| 2006 | 2026 | public static function get_last_updated() { |
| … |
… |
class BP_Activity_Activity { |
| 2036 | 2056 | * |
| 2037 | 2057 | * @since 1.1.0 |
| 2038 | 2058 | * |
| | 2059 | * @global wpdb $wpdb WordPress database object. |
| | 2060 | * |
| 2039 | 2061 | * @param string $content The content to filter by. |
| 2040 | 2062 | * @return int|false The ID of the first matching item if found, otherwise false. |
| 2041 | 2063 | */ |
| … |
… |
class BP_Activity_Activity { |
| 2054 | 2076 | * |
| 2055 | 2077 | * @since 1.2.0 |
| 2056 | 2078 | * |
| | 2079 | * @global wpdb $wpdb WordPress database object. |
| | 2080 | * |
| 2057 | 2081 | * @param int $user_id The ID of the user whose activity you want to mark hidden. |
| 2058 | 2082 | * @return mixed |
| 2059 | 2083 | */ |
diff --git a/src/bp-activity/classes/class-bp-activity-feed.php b/src/bp-activity/classes/class-bp-activity-feed.php
index 872e7a22f..a6f8682b4 100644
|
a
|
b
|
class BP_Activity_Feed { |
| 90 | 90 | * |
| 91 | 91 | * @since 1.8.0 |
| 92 | 92 | * |
| | 93 | * @global WP_Query $wp_query WordPress query object. |
| | 94 | * |
| 93 | 95 | * @param array $args Optional. |
| 94 | 96 | */ |
| 95 | 97 | public function __construct( $args = array() ) { |
| … |
… |
class BP_Activity_Feed { |
| 330 | 332 | * Most of this class method is derived from {@link WP::send_headers()}. |
| 331 | 333 | * |
| 332 | 334 | * @since 1.9.0 |
| | 335 | * |
| | 336 | * @global WP_Query $wp_query WordPress query object. |
| 333 | 337 | */ |
| 334 | 338 | protected function http_headers() { |
| 335 | 339 | // Set up some additional headers if not on a directory page |
diff --git a/src/bp-activity/classes/class-bp-activity-query.php b/src/bp-activity/classes/class-bp-activity-query.php
index 42a4b4e24..a1df06591 100644
|
a
|
b
|
class BP_Activity_Query extends BP_Recursive_Query { |
| 108 | 108 | * |
| 109 | 109 | * @since 2.2.0 |
| 110 | 110 | * |
| | 111 | * @global wpdb $wpdb WordPress database object. |
| | 112 | * |
| 111 | 113 | * @param array $clause Array of arguments belonging to the clause. |
| 112 | 114 | * @param array $parent_query Parent query to which the clause belongs. |
| 113 | 115 | * @return array { |
diff --git a/src/bp-blogs/bp-blogs-activity.php b/src/bp-blogs/bp-blogs-activity.php
index b7de267dc..253647043 100644
|
a
|
b
|
add_action( 'bp_blogs_remove_data_for_blog', 'bp_blogs_delete_activity_for_site' |
| 671 | 671 | * |
| 672 | 672 | * @since 1.0.0 |
| 673 | 673 | * |
| | 674 | * @global wpdb $wpdb WordPress database object. |
| | 675 | * |
| 674 | 676 | * @param int $post_id ID of the post to be removed. |
| 675 | 677 | * @param int $blog_id Optional. Defaults to current blog ID. |
| 676 | 678 | * @param int $user_id Optional. Defaults to the logged-in user ID. This param |
| … |
… |
add_action( 'trashed_post_comments', 'bp_blogs_remove_activity_meta_for_trashed_ |
| 1022 | 1024 | * @since 2.1.0 |
| 1023 | 1025 | * @since 2.5.0 Used for any synced Post type comments, in wp-admin or front-end contexts. |
| 1024 | 1026 | * |
| | 1027 | * @global wpdb $wpdb WordPress database object. |
| | 1028 | * |
| 1025 | 1029 | * @param array $args Arguments passed from bp_parse_args() in bp_has_activities(). |
| 1026 | 1030 | * @return array $args |
| 1027 | 1031 | */ |
| … |
… |
add_action( 'bp_before_activity_comment', 'bp_blogs_setup_comment_loop_globals_o |
| 1200 | 1204 | * |
| 1201 | 1205 | * @since 2.0.0 |
| 1202 | 1206 | * |
| | 1207 | * @global BP_Activity_Template $activities_template The main activity template for Disable Activity Commenting. |
| | 1208 | * |
| 1203 | 1209 | * @param bool $retval Is activity commenting enabled for this activity entry. |
| 1204 | 1210 | * @return bool |
| 1205 | 1211 | */ |
| … |
… |
add_filter( 'bp_activity_can_comment_reply', 'bp_blogs_can_comment_reply', 10, 2 |
| 1331 | 1337 | * |
| 1332 | 1338 | * @since 2.0.0 |
| 1333 | 1339 | * |
| | 1340 | * @global BP_Activity_Template $activities_template The main activity template for Change activity comment permalinks. |
| | 1341 | * |
| 1334 | 1342 | * @param string $retval The activity comment permalink. |
| 1335 | 1343 | * @return string |
| 1336 | 1344 | */ |
diff --git a/src/bp-blogs/bp-blogs-functions.php b/src/bp-blogs/bp-blogs-functions.php
index 290e689c1..56ab903b3 100644
|
a
|
b
|
function bp_blogs_get_blogs( $args = '' ) { |
| 87 | 87 | * @since 1.0.0 |
| 88 | 88 | * @since 2.6.0 Accepts $args as a parameter. |
| 89 | 89 | * |
| | 90 | * @global wpdb $wpdb WordPress database object. |
| | 91 | * |
| 90 | 92 | * @param array $args { |
| 91 | 93 | * Array of arguments. |
| 92 | 94 | * @type int $offset The offset to use. |
| … |
… |
add_action( 'bp_activity_post_type_comment', 'bp_blogs_comment_sync_activity_com |
| 860 | 862 | * default, though as of 2.1.0 you can filter 'bp_blogs_get_allowed_roles' to |
| 861 | 863 | * modify this behavior. |
| 862 | 864 | * |
| | 865 | * @global wpdb $wpdb WordPress database object. |
| | 866 | * |
| 863 | 867 | * @param int $user_id The ID of the user. |
| 864 | 868 | * @param string|bool $role User's WordPress role for this blog ID. |
| 865 | 869 | * @param int $blog_id Blog ID user is being added to. |
| … |
… |
function bp_blogs_get_allowed_roles() { |
| 936 | 940 | /** |
| 937 | 941 | * Remove a blog-user pair from BP's blog tracker. |
| 938 | 942 | * |
| | 943 | * @global wpdb $wpdb WordPress database object. |
| | 944 | * |
| 939 | 945 | * @param int $user_id ID of the user whose blog is being removed. |
| 940 | 946 | * @param int $blog_id Optional. ID of the blog being removed. Default: current blog ID. |
| 941 | 947 | */ |