Changeset 8132 for trunk/bp-blogs/bp-blogs-functions.php
- Timestamp:
- 03/14/2014 12:50:26 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-functions.php
r8130 r8132 921 921 * metadata entries with the specified value. Otherwise, update all 922 922 * entries. 923 * @return bool True on success, false on failure. 923 * @return bool|int Returns false on failure. On successful update of existing 924 * metadata, returns true. On successful creation of new metadata, 925 * returns the integer ID of the new metadata row. 924 926 */ 925 927 function bp_blogs_update_blogmeta( $blog_id, $meta_key, $meta_value, $prev_value = '' ) { … … 928 930 $retval = update_metadata( 'blog', $blog_id, $meta_key, $meta_value, $prev_value ); 929 931 remove_filter( 'query', 'bp_filter_metaid_column_name' ); 930 931 // Legacy - New items fall through to add_metadata(). Return true932 // instead of the ID returned from that function.933 if ( is_int( $retval ) ) {934 $retval = true;935 }936 932 937 933 return $retval;
Note: See TracChangeset
for help on using the changeset viewer.