Changeset 37634
- Timestamp:
- 06/04/2016 12:19:15 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r37623 r37634 1210 1210 1211 1211 // Count queries are not filtered, for legacy reasons. 1212 if ( $term_query->query_vars['count']) {1212 if ( ! is_array( $terms ) ) { 1213 1213 return $terms; 1214 1214 } -
trunk/tests/phpunit/tests/term/getTerms.php
r37623 r37634 2184 2184 * @ticket 35381 2185 2185 */ 2186 public function test_count_should_ pass_through_main_get_terms_filter() {2186 public function test_count_should_not_pass_through_main_get_terms_filter() { 2187 2187 add_filter( 'get_terms', array( __CLASS__, 'maybe_filter_count' ) ); 2188 2188 2189 2189 $found = get_terms( array( 2190 2190 'hide_empty' => 0, 2191 ' count' => true,2191 'fields' => 'count', 2192 2192 ) ); 2193 2193
Note: See TracChangeset
for help on using the changeset viewer.