Changeset 8129 for trunk/bp-blogs/bp-blogs-functions.php
- Timestamp:
- 03/14/2014 12:07:18 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-functions.php
r8125 r8129 854 854 } 855 855 856 // Legacy - sanitize meta_key857 $meta_key = preg_replace( '|[^a-z0-9_]|i', '', $meta_key );858 859 856 // Legacy - if no meta_key is passed, delete all for the blog_id 860 857 if ( empty( $meta_key ) ) { … … 898 895 function bp_blogs_get_blogmeta( $blog_id, $meta_key = '', $single = true ) { 899 896 900 // Legacy - Sanitize meta_key901 $meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key);902 903 897 add_filter( 'query', 'bp_filter_metaid_column_name' ); 904 898 $retval = get_metadata( 'blog', $blog_id, $meta_key, $single ); … … 934 928 function bp_blogs_update_blogmeta( $blog_id, $meta_key, $meta_value, $prev_value = '' ) { 935 929 936 // Legacy - Sanitize meta_key937 $meta_key = preg_replace( '|[^a-z0-9_]|i', '', $meta_key );938 939 930 add_filter( 'query', 'bp_filter_metaid_column_name' ); 940 931 $retval = update_metadata( 'blog', $blog_id, $meta_key, $meta_value, $prev_value );
Note: See TracChangeset
for help on using the changeset viewer.