Skip to:
Content

BuddyPress.org

Changeset 8808


Ignore:
Timestamp:
08/12/2014 12:31:22 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Clean up bp-xprofile-activity.php:

  • phpdoc
  • indentation
  • whitespace
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-activity.php

    r8807 r8808  
    44 * BuddyPress XProfile Activity & Notification Functions
    55 *
    6  * These functions handle the recording, deleting and formatting of activity items and
    7  * notifications for the user and for this specific component.
     6 * These functions handle the recording, deleting and formatting of activity
     7 * items and notifications for the user and for this specific component.
    88 *
    99 * @package BuddyPress
    … …  
    1414if ( !defined( 'ABSPATH' ) ) exit;
    1515
     16/**
     17 * Register the activity actions for the Extended Profile component
     18 *
     19 * @since BuddyPress (1.0.0)
     20 *
     21 * @uses bp_activity_set_action() To setup the individual actions
     22 */
    1623function xprofile_register_activity_actions() {
    17         global $bp;
    1824
    1925        // Register the activity stream actions for this component
    … …  
    2834        );
    2935
     36        // Get the profile component ID
     37        $profile_id = buddypress()->profile->id;
     38
    3039        bp_activity_set_action(
    31                 $bp->profile->id,
     40                $profile_id,
    3241                'new_member',
    3342                __( 'New member registered', 'buddypress' ),
    … …  
    3847
    3948        bp_activity_set_action(
    40                 $bp->profile->id,
     49                $profile_id,
    4150                'updated_profile',
    4251                __( 'Updated Profile', 'buddypress' ),
    … …  
    102111 */
    103112function bp_xprofile_format_activity_action_updated_profile( $action, $activity ) {
     113
    104114        // Note for translators: The natural phrasing in English, "Joe updated
    105115        // his profile", requires that we know Joe's gender, which we don't. If
    … …  
    116126 * it will show in the users activity stream (if installed)
    117127 *
    118  * @since BuddyPress (1.0.0)0
     128 * @since BuddyPress (1.0.0)
    119129 *
    120130 * @package BuddyPress
Note: See TracChangeset for help on using the changeset viewer.