Skip to:
Content

bbPress.org

Changeset 5840


Ignore:
Timestamp:
07/15/2015 05:43:18 PM (10 years ago)
Author:
johnjamesjacoby
Message:

In BBP_Akismet::filter_post_terms() use bbp_get_topic_tag_names() to use cached function instead of querying for object terms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/akismet.php

    r5829 r5840  
    597597     * @uses bbp_get_reply_id() To get the reply_id
    598598     * @uses bbp_get_topic_id() To get the topic_id
    599      * @uses wp_get_object_terms() To a post's current terms
     599     * @uses bbp_get_topic_tag_names() To a post's current terms
    600600     * @uses update_post_meta() To add spam terms to post meta
    601601     *
     
    609609
    610610        // Get any pre-existing terms
    611         $existing_terms = wp_get_object_terms( $topic_id, bbp_get_topic_tag_tax_id(), array( 'fields' => 'names' ) );
     611        $existing_terms = bbp_get_topic_tag_names( $topic_id );
    612612
    613613        // Save the terms for later in case the reply gets hammed
Note: See TracChangeset for help on using the changeset viewer.