Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2016 09:00:21 PM (3 years ago)
Author:
r-a-y
Message:

Activity: Introduce error handling to the BP_Activity_Activity class.

To support frontend user messages for activity failures, we need the
ability to add errors.

This commit:

  • Introduces the $errors object and $error_type property to the BP_Activity_Activity class.
  • Adds an 'error_type' parameter to all applicable, activity functions.
  • Modifies bp-legacy to output an error message for activity failures.

See #6719.

File:
1 edited

Legend:

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

    r10454 r10858  
    380380        'secondary_item_id' => false,
    381381        'recorded_time'     => bp_core_current_time(),
    382         'hide_sitewide'     => $hide_sitewide
     382        'hide_sitewide'     => $hide_sitewide,
     383        'error_type'        => 'bool'
    383384    ) );
    384385
Note: See TracChangeset for help on using the changeset viewer.