Skip to:
Content

BuddyPress.org

Ticket #5524: 5524.diff

File 5524.diff, 1009 bytes (added by rzen, 7 years ago)

Doc fixes

  • bp-notifications/bp-notifications-actions.php

     
    5959 */
    6060function bp_notifications_action_mark_unread() {
    6161
    62         // Bail if not the unread screen
     62        // Bail if not the read screen
    6363        if ( ! bp_is_notifications_component() || ! bp_is_current_action( 'read' ) ) {
    6464                return false;
    6565        }
     
    8787add_action( 'bp_actions', 'bp_notifications_action_mark_unread' );
    8888
    8989/**
    90  * Handle marking single notifications as unread
     90 * Handle deleting single notifications
    9191 *
    9292 * @since BuddyPress (1.9.0)
    9393 *
     
    9595 */
    9696function bp_notifications_action_delete() {
    9797
    98         // Bail if not the unread screen
     98        // Bail if not the read or unread screen
    9999        if ( ! bp_is_notifications_component() || ! ( bp_is_current_action( 'read' ) || bp_is_current_action( 'unread' ) ) ) {
    100100                return false;
    101101        }