Skip to:
Content

BuddyPress.org

Ticket #6270: 6270.03.patch

File 6270.03.patch, 1.2 KB (added by johnjamesjacoby, 5 years ago)

For 2.2.2

  • src/bp-core/deprecated/2.2.php

     
    104104function bp_core_add_global_group() {
    105105        _deprecated_function( __FUNCTION__, '2.2', 'This function has no replacement' );
    106106}
     107
     108/**
     109 * Add a piece of message metadata.
     110 *
     111 * @deprecated BuddyPress (2.3.0)
     112 */
     113function bp_message_add_meta( $message_id, $meta_key, $meta_value, $unique = false ) {
     114        _deprecated_function( __FUNCTION__, '2.3.0', 'bp_messages_add_meta()' );
     115        return bp_messages_add_meta( $message_id, $meta_key, $meta_value, $unique );
     116}
  • src/bp-messages/bp-messages-functions.php

     
    443443 *
    444444 * @see add_metadata() for full documentation excluding $meta_type variable.
    445445 */
    446 function bp_message_add_meta( $message_id, $meta_key, $meta_value, $unique = false ) {
     446function bp_messages_add_meta( $message_id, $meta_key, $meta_value, $unique = false ) {
    447447        add_filter( 'query', 'bp_filter_metaid_column_name' );
    448448        $retval = add_metadata( 'message', $message_id, $meta_key, $meta_value, $unique );
    449449        remove_filter( 'query', 'bp_filter_metaid_column_name' );