mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Merge Categories/Hierarchical taxonomies into edit-tags.php. See #11838
git-svn-id: https://develop.svn.wordpress.org/trunk@12818 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -786,13 +786,13 @@ function &get_terms($taxonomies, $args = '') {
|
||||
|
||||
// don't limit the query results when we have to descend the family tree
|
||||
if ( ! empty($number) && ! $hierarchical && empty( $child_of ) && '' === $parent ) {
|
||||
if( $offset )
|
||||
if ( $offset )
|
||||
$limit = 'LIMIT ' . $offset . ',' . $number;
|
||||
else
|
||||
$limit = 'LIMIT ' . $number;
|
||||
|
||||
} else
|
||||
} else {
|
||||
$limit = '';
|
||||
}
|
||||
|
||||
if ( !empty($search) ) {
|
||||
$search = like_escape($search);
|
||||
@@ -2446,4 +2446,5 @@ function is_object_in_taxonomy($object_type, $taxonomy) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user