WordPress.org

Make WordPress Core

Changeset 11253


Ignore:
Timestamp:
05/10/2009 09:11:58 AM (13 years ago)
Author:
westi
Message:

Add a filter to the result of wp_get_object_terms(). Fixes #8704 props Denis-de-Bernardy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r11250 r11253  
    12741274
    12751275    if ( ! $terms )
    1276         return array();
    1277 
    1278     return $terms;
     1276        return $terms = array();
     1277
     1278    return apply_filters('wp_get_object_terms', $terms, $object_ids, $taxonomies, $args);
    12791279}
    12801280
Note: See TracChangeset for help on using the changeset viewer.