Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/04/2013 11:28:40 AM (6 years ago)
Author:
boonebgorges
Message:

Remove incorrect $wpdb->prepare() use in BP_Activity_Activity::get_recorded_components()

Also adds docblock

See #3460

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-classes.php

    r7051 r7149  
    615615    }
    616616
     617    /**
     618     * Fetch a list of all components that have activity items recorded
     619     *
     620     * @return array
     621     */
    617622    function get_recorded_components() {
    618623        global $wpdb, $bp;
    619 
    620         return $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT component FROM {$bp->activity->table_name} ORDER BY component ASC" ) );
     624        return $wpdb->get_col( "SELECT DISTINCT component FROM {$bp->activity->table_name} ORDER BY component ASC" );
    621625    }
    622626
Note: See TracChangeset for help on using the changeset viewer.