Skip to:
Content

BuddyPress.org

Ticket #6270: 6270.02.patch

File 6270.02.patch, 1.3 KB (added by boonebgorges, 5 years ago)
  • src/bp-core/deprecated/2.3.php

    diff --git src/bp-core/deprecated/2.3.php src/bp-core/deprecated/2.3.php
    index 7085449..b6a91f8 100644
    function bp_core_referrer() { 
    2222        return implode( '/', $referer );
    2323}
    2424
     25/**
     26 * Add a piece of message metadata.
     27 *
     28 * @deprecated BuddyPress (2.3.0)
     29 */
     30function bp_message_add_meta( $message_id, $meta_key, $meta_value, $unique = false ) {
     31        _deprecated_function( __FUNCTION__, '2.3.0', 'bp_messages_add_meta()' );
     32        return bp_messages_add_meta( $message_id, $meta_key, $meta_value, $unique );
     33}
  • src/bp-messages/bp-messages-functions.php

    diff --git src/bp-messages/bp-messages-functions.php src/bp-messages/bp-messages-functions.php
    index b106fac..ca63312 100644
    function bp_messages_update_meta( $message_id, $meta_key, $meta_value, $prev_val 
    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' );