Skip to:
Content

BuddyPress.org

Ticket #8221: 8221.patch

File 8221.patch, 4.5 KB (added by passoniate, 5 years ago)

Patch

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

     
    356356                        check_admin_referer( 'spam-activity_' . $activity_ids[0] );
    357357                }
    358358
    359                 // Initialise counters for how many of each type of item we perform an action on.
     359                // Initialize counters for how many of each type of item we perform an action on.
    360360                $deleted = $spammed = $unspammed = 0;
    361361
    362362                // Store any errors that occurs when updating the database items.
  • src/bp-activity/bp-activity-embeds.php

     
    234234                        $thumbnail = $oembed->thumbnail_url;
    235235
    236236                /* Non-oEmbed standard attributes */
    237                 // Mixcloud
     237                // Mixcloud.
    238238                } elseif ( isset( $oembed->image ) ) {
    239239                        $thumbnail = $oembed->image;
    240                 // ReverbNation
     240                // ReverbNation.
    241241                } elseif ( isset( $oembed->{'thumbnail-url'} ) ) {
    242242                        $thumbnail = $oembed->{'thumbnail-url'};
    243243                }
  • src/bp-activity/bp-activity-filters.php

     
    615615         */
    616616        $heartbeat_settings = apply_filters( 'heartbeat_settings', array() );
    617617        if ( ! empty( $heartbeat_settings['interval'] ) ) {
    618                 // 'Fast' is 5
     618                // 'Fast' is 5.
    619619                $global_pulse = is_numeric( $heartbeat_settings['interval'] ) ? absint( $heartbeat_settings['interval'] ) : 5;
    620620        }
    621621
  • src/bp-activity/bp-activity-functions.php

     
    522522                $post_type_activity->new_post_type_action_ms = $post_type_object->labels->bp_activity_new_post_ms;
    523523        }
    524524
    525         // If the post type supports comments and has a comment action id, build the comments tracking args
     525        // If the post type supports comments and has a comment action id, build the comments tracking args.
    526526        if ( $post_type_support_comments && ! empty( $post_type_activity->comment_action_id ) ) {
    527                 // Init a new container for the activity type for comments
     527                // Init a new container for the activity type for comments.
    528528                $post_type_activity->comments_tracking = new stdClass();
    529529
    530                 // Build the activity type for comments
     530                // Build the activity type for comments.
    531531                $post_type_activity->comments_tracking->component_id = $post_type_activity->component_id;
    532532                $post_type_activity->comments_tracking->action_id    = $post_type_activity->comment_action_id;
    533533
     
    17881788                'page'              => 1,          // Page 1 without a per_page will result in no pagination.
    17891789                'per_page'          => false,      // Results per page.
    17901790                'show_hidden'       => true,       // When fetching specific items, show all.
    1791                 'sort'              => 'DESC',     // Sort ASC or DESC
     1791                'sort'              => 'DESC',     // Sort ASC or DESC.
    17921792                'spam'              => 'ham_only', // Retrieve items marked as spam.
    17931793                'update_meta_cache' => true,
    17941794        ), 'activity_get_specific' );
  • src/bp-activity/classes/class-bp-activity-component.php

     
    7171                        $includes[] = 'akismet';
    7272                }
    7373
    74                 // Embeds
     74                // Embeds.
    7575                if ( bp_is_active( $this->id, 'embeds' ) ) {
    7676                        $includes[] = 'embeds';
    7777                }
  • src/bp-activity/classes/class-bp-activity-list-table.php

     
    124124                        $has_filter_query = apply_filters( 'bp_activity_list_table_filter_activity_type_items', $filter );
    125125
    126126                        if ( ! empty( $has_filter_query['filter_query'] ) ) {
    127                                 // Reset the filter
     127                                // Reset the filter.
    128128                                $filter       = array();
    129129
    130                                 // And use the filter query instead
     130                                // And use the filter query instead.
    131131                                $filter_query = $has_filter_query['filter_query'];
    132132                        }
    133133                }