Skip to:
Content

BuddyPress.org

Changeset 9583


Ignore:
Timestamp:
03/03/2015 12:46:17 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Messages: rename bp_message_add_meta() to bp_messages_add_meta() to better match other metadata functions. See #6270 (2.2 branch)

Location:
branches/2.2/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/src/bp-core/deprecated/2.2.php

    r9334 r9583  
    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.2.2)
     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}
  • branches/2.2/src/bp-messages/bp-messages-functions.php

    r9351 r9583  
    440440 * Add a piece of message metadata.
    441441 *
    442  * @since BuddyPress (2.2.0)
     442 * @since BuddyPress (2.2.2)
    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 );
Note: See TracChangeset for help on using the changeset viewer.