Changeset 7885 for trunk/bp-blogs/bp-blogs-functions.php
- Timestamp:
- 02/14/2014 07:21:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-functions.php
r7883 r7885 922 922 * @param string $meta_key Key of the metadata being updated. 923 923 * @param mixed $meta_value Value to be set. 924 * @param mixed $prev_value Optional. If specified, only update existing 925 * metadata entries with the specified value. Otherwise, update all 926 * entries. 924 927 * @return bool True on success, false on failure. 925 928 */ 926 function bp_blogs_update_blogmeta( $blog_id, $meta_key, $meta_value ) {929 function bp_blogs_update_blogmeta( $blog_id, $meta_key, $meta_value, $prev_value = '' ) { 927 930 928 931 // Legacy - Sanitize meta_key … … 930 933 931 934 add_filter( 'query', 'bp_filter_metaid_column_name' ); 932 $retval = update_metadata( 'blog', $blog_id, $meta_key, $meta_value );935 $retval = update_metadata( 'blog', $blog_id, $meta_key, $meta_value, $prev_value ); 933 936 remove_filter( 'query', 'bp_filter_metaid_column_name' ); 934 937
Note: See TracChangeset
for help on using the changeset viewer.