Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/14/2014 01:12:13 AM (10 years ago)
Author:
boonebgorges
Message:

Remove unnecessary parameter sanitization from meta functions

WP's meta API functions already perform the necessary sanitization.

See #5399

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-functions.php

    r8134 r8135  
    849849    global $wpdb, $bp;
    850850
    851     // Legacy - return false if the $blog_id is empty
    852     if ( ! is_numeric( $blog_id ) ) {
    853         return false;
    854     }
    855 
    856851    // Legacy - if no meta_key is passed, delete all for the blog_id
    857852    if ( empty( $meta_key ) ) {
     
    864859    add_filter( 'query', 'bp_filter_metaid_column_name' );
    865860
     861    $retval = false;
    866862    foreach ( $keys as $key ) {
    867863        $retval = delete_metadata( 'blog', $blog_id, $key, $meta_value, $delete_all );
Note: See TracChangeset for help on using the changeset viewer.