Make WordPress Core


Ignore:
Timestamp:
11/15/2013 02:32:16 AM (11 years ago)
Author:
wonderboymusic
Message:

Remove the Featured Content term filters when running Unit Tests. Set the return value of wp_get_object_terms() to a var before passing to array_shift() in test_get_object_terms_types(), which expects a var to be passed by reference.

See #25282.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/utils.php

    r26006 r26187  
    383383    }
    384384}
     385
     386function _clean_term_filters() {
     387    remove_filter( 'get_terms',     array( 'Featured_Content', 'hide_featured_term'     ), 10, 2 );
     388    remove_filter( 'get_the_terms', array( 'Featured_Content', 'hide_the_featured_term' ), 10, 3 );
     389}
Note: See TracChangeset for help on using the changeset viewer.