Make WordPress Core

Changeset 21951


Ignore:
Timestamp:
09/22/2012 03:21:30 PM (14 years ago)
Author:
nacin
Message:

Don't repeatedly call get_object_taxonomies() in clean_object_term_cache(). see #11399.

File:
1 edited

Legend:

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

    r21939 r21951  
    25602560                $object_ids = array($object_ids);
    25612561
     2562        $taxonomies = get_object_taxonomies( $object_type );
     2563
    25622564        foreach ( $object_ids as $id )
    2563                 foreach ( get_object_taxonomies($object_type) as $taxonomy )
     2565                foreach ( $taxonomies as $taxonomy )
    25642566                        wp_cache_delete($id, "{$taxonomy}_relationships");
    25652567
Note: See TracChangeset for help on using the changeset viewer.