Skip to:
Content

BuddyPress.org

Ticket #9116: 9116.patch

File 9116.patch, 8.4 KB (added by shailu25, 2 years ago)

Patch Added

  • src/bp-activity/bp-activity-template.php

    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() ) { 
    37703770 *
    37713771 * @since 1.7.0
    37723772 *
     3773 * @global BP_Activity_Template $activities_template The main activity
     3774 *
    37733775 * @return bool|array An array of IDs, or false if none are found.
    37743776 */
    37753777function bp_activity_get_comments_user_ids() {
  • src/bp-activity/classes/class-bp-activity-activity.php

    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 { 
    173173         * Populate the object with data about the specific activity item.
    174174         *
    175175         * @since 1.0.0
     176         *
     177         * @global wpdb $wpdb WordPress database object.
    176178         */
    177179        public function populate() {
    178180                global $wpdb;
    class BP_Activity_Activity { 
    227229         *
    228230         * @since 1.0.0
    229231         *
     232         * @global wpdb $wpdb WordPress database object.
     233         *
    230234         * @return WP_Error|bool True on success.
    231235         */
    232236        public function save() {
    class BP_Activity_Activity { 
    350354         * @see WP_Meta_Query::queries for a description of the 'meta_query'
    351355         *      parameter format.
    352356         *
     357         * @global wpdb $wpdb WordPress database object.
     358         *
    353359         * @param array $args {
    354360         *     An array of arguments. All items are optional.
    355361         *     @type int          $page              Which page of results to fetch. Using page=1 without per_page will result
    class BP_Activity_Activity { 
    881887         *
    882888         * @since 2.0.0
    883889         *
     890         * @global wpdb $wpdb WordPress database object.
     891         *
    884892         * @param array $activity_ids Array of activity IDs.
    885893         * @return array
    886894         */
    class BP_Activity_Activity { 
    12391247         * @since 1.2.0
    12401248         * @since 10.0.0 Parameters were made optional.
    12411249         *
     1250         * @global wpdb $wpdb WordPress database object.
     1251         *
    12421252         * @param array $args {
    12431253         *     An array of arguments. All items are optional.
    12441254         *     @type int    $user_id           User ID to filter by.
    class BP_Activity_Activity { 
    13511361         *
    13521362         * @since 1.2.0
    13531363         *
     1364         * @global wpdb $wpdb WordPress database object.
     1365         *
    13541366         * @param array $args {
    13551367         *     @int    $id                Optional. The ID of a specific item to delete.
    13561368         *     @string $action            Optional. The action to filter by.
    class BP_Activity_Activity { 
    15281540         *
    15291541         * @since 1.2.0
    15301542         *
     1543         * @global wpdb $wpdb WordPress database object.
     1544         *
    15311545         * @deprecated 2.3.0
    15321546         *
    15331547         * @param array $activity_ids Activity IDs whose comments should be deleted.
    class BP_Activity_Activity { 
    18291843         *
    18301844         * @since 1.2.0
    18311845         *
     1846         * @global wpdb $wpdb WordPress database object.
     1847         *
    18321848         * @param bool $skip_last_activity If true, components will not be
    18331849         *                                 included if the only activity type associated with them is
    18341850         *                                 'last_activity'. (Since 2.0.0, 'last_activity' is stored in
    class BP_Activity_Activity { 
    18801896         *
    18811897         * @see BP_Activity_Activity::get_filter_sql()
    18821898         *
     1899         * @global wpdb $wpdb WordPress database object.
     1900         *
    18831901         * @param string     $field The database field.
    18841902         * @param array|bool $items The values for the IN clause, or false when none are found.
    18851903         * @return string|false
    class BP_Activity_Activity { 
    20012019         *
    20022020         * @since 1.2.0
    20032021         *
     2022         * @global wpdb $wpdb WordPress database object.
     2023         *
    20042024         * @return string ISO timestamp.
    20052025         */
    20062026        public static function get_last_updated() {
    class BP_Activity_Activity { 
    20362056         *
    20372057         * @since 1.1.0
    20382058         *
     2059         * @global wpdb $wpdb WordPress database object.
     2060         *
    20392061         * @param string $content The content to filter by.
    20402062         * @return int|false The ID of the first matching item if found, otherwise false.
    20412063         */
    class BP_Activity_Activity { 
    20542076         *
    20552077         * @since 1.2.0
    20562078         *
     2079         * @global wpdb $wpdb WordPress database object.
     2080         *
    20572081         * @param int $user_id The ID of the user whose activity you want to mark hidden.
    20582082         * @return mixed
    20592083         */
  • src/bp-activity/classes/class-bp-activity-feed.php

    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 { 
    9090         *
    9191         * @since 1.8.0
    9292         *
     93         * @global WP_Query $wp_query WordPress query object.
     94         *
    9395         * @param array $args Optional.
    9496         */
    9597        public function __construct( $args = array() ) {
    class BP_Activity_Feed { 
    330332         * Most of this class method is derived from {@link WP::send_headers()}.
    331333         *
    332334         * @since 1.9.0
     335         *
     336         * @global WP_Query $wp_query WordPress query object.
    333337         */
    334338        protected function http_headers() {
    335339                // Set up some additional headers if not on a directory page
  • src/bp-activity/classes/class-bp-activity-query.php

    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 { 
    108108         *
    109109         * @since 2.2.0
    110110         *
     111         * @global wpdb $wpdb WordPress database object.
     112         *
    111113         * @param  array $clause       Array of arguments belonging to the clause.
    112114         * @param  array $parent_query Parent query to which the clause belongs.
    113115         * @return array {
  • src/bp-blogs/bp-blogs-activity.php

    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' 
    671671 *
    672672 * @since 1.0.0
    673673 *
     674 * @global wpdb $wpdb WordPress database object.
     675 *
    674676 * @param int $post_id ID of the post to be removed.
    675677 * @param int $blog_id Optional. Defaults to current blog ID.
    676678 * @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_ 
    10221024 * @since 2.1.0
    10231025 * @since 2.5.0 Used for any synced Post type comments, in wp-admin or front-end contexts.
    10241026 *
     1027 * @global wpdb $wpdb WordPress database object.
     1028 *
    10251029 * @param array $args Arguments passed from bp_parse_args() in bp_has_activities().
    10261030 * @return array $args
    10271031 */
    add_action( 'bp_before_activity_comment', 'bp_blogs_setup_comment_loop_globals_o 
    12001204 *
    12011205 * @since 2.0.0
    12021206 *
     1207 * @global BP_Activity_Template $activities_template The main activity template for Disable Activity Commenting.
     1208 *
    12031209 * @param bool $retval Is activity commenting enabled for this activity entry.
    12041210 * @return bool
    12051211 */
    add_filter( 'bp_activity_can_comment_reply', 'bp_blogs_can_comment_reply', 10, 2 
    13311337 *
    13321338 * @since 2.0.0
    13331339 *
     1340 * @global BP_Activity_Template $activities_template The main activity template for Change activity comment permalinks.
     1341 *
    13341342 * @param string $retval The activity comment permalink.
    13351343 * @return string
    13361344 */
  • src/bp-blogs/bp-blogs-functions.php

    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 = '' ) { 
    8787 * @since 1.0.0
    8888 * @since 2.6.0 Accepts $args as a parameter.
    8989 *
     90 * @global wpdb $wpdb WordPress database object.
     91 *
    9092 * @param array $args {
    9193 *     Array of arguments.
    9294 *     @type int    $offset   The offset to use.
    add_action( 'bp_activity_post_type_comment', 'bp_blogs_comment_sync_activity_com 
    860862 * default, though as of 2.1.0 you can filter 'bp_blogs_get_allowed_roles' to
    861863 * modify this behavior.
    862864 *
     865 * @global wpdb $wpdb WordPress database object.
     866 *
    863867 * @param int         $user_id The ID of the user.
    864868 * @param string|bool $role    User's WordPress role for this blog ID.
    865869 * @param int         $blog_id Blog ID user is being added to.
    function bp_blogs_get_allowed_roles() { 
    936940/**
    937941 * Remove a blog-user pair from BP's blog tracker.
    938942 *
     943 * @global wpdb $wpdb WordPress database object.
     944 *
    939945 * @param int $user_id ID of the user whose blog is being removed.
    940946 * @param int $blog_id Optional. ID of the blog being removed. Default: current blog ID.
    941947 */