Ticket #41010: 41010.patch
File 41010.patch, 701 bytes (added by , 8 years ago) |
---|
-
wp-includes/taxonomy.php
1864 1864 $args['taxonomy'] = $taxonomies; 1865 1865 $args['object_ids'] = $object_ids; 1866 1866 1867 $terms = array_merge( $terms, get_terms( $args ) ); 1867 // In case not all taxonomies were unset by the processing above, get the terms of the remaining. 1868 // Otherwise, if we call `get_terms` with `'taxonomy' => array()` it will return all taxonomies. 1869 if ( ! empty( $args['taxonomy'] ) ) { 1870 $terms = array_merge( $terms, get_terms( $args ) ); 1871 } 1868 1872 1869 1873 /** 1870 1874 * Filters the terms for a given object or objects.