Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/19/2016 05:43:23 PM (3 years ago)
Author:
r-a-y
Message:

Notifications: Make notification meta great again.

This commit fixes this for the betterment of notifications everywhere.

Fixes #7067.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-notifications/bp-notifications-functions.php

    r10725 r10788  
    702702    add_filter( 'query', 'bp_filter_metaid_column_name' );
    703703    foreach ( $keys as $key ) {
    704         $retval = delete_metadata( 'notifications', $notification_id, $key, $meta_value, $delete_all );
     704        $retval = delete_metadata( 'notification', $notification_id, $key, $meta_value, $delete_all );
    705705    }
    706706    remove_filter( 'query', 'bp_filter_metaid_column_name' );
     
    727727function bp_notifications_get_meta( $notification_id = 0, $meta_key = '', $single = true ) {
    728728    add_filter( 'query', 'bp_filter_metaid_column_name' );
    729     $retval = get_metadata( 'notifications', $notification_id, $meta_key, $single );
     729    $retval = get_metadata( 'notification', $notification_id, $meta_key, $single );
    730730    remove_filter( 'query', 'bp_filter_metaid_column_name' );
    731731
     
    762762function bp_notifications_update_meta( $notification_id, $meta_key, $meta_value, $prev_value = '' ) {
    763763    add_filter( 'query', 'bp_filter_metaid_column_name' );
    764     $retval = update_metadata( 'notifications', $notification_id, $meta_key, $meta_value, $prev_value );
     764    $retval = update_metadata( 'notification', $notification_id, $meta_key, $meta_value, $prev_value );
    765765    remove_filter( 'query', 'bp_filter_metaid_column_name' );
    766766
     
    783783function bp_notifications_add_meta( $notification_id, $meta_key, $meta_value, $unique = false ) {
    784784    add_filter( 'query', 'bp_filter_metaid_column_name' );
    785     $retval = add_metadata( 'notifications', $notification_id, $meta_key, $meta_value, $unique );
     785    $retval = add_metadata( 'notification', $notification_id, $meta_key, $meta_value, $unique );
    786786    remove_filter( 'query', 'bp_filter_metaid_column_name' );
    787787
Note: See TracChangeset for help on using the changeset viewer.