Fixes terms pagination
This commit is contained in:
parent
5dca8f3c6d
commit
54eccb3a6f
|
@ -297,7 +297,7 @@ class REST_Terms_Controller extends REST_Controller {
|
|||
|
||||
if(isset($args['number'], $args['offset'])){
|
||||
unset( $args['number'], $args['offset'] );
|
||||
$total_terms = wp_count_terms( $this->taxonomy->get_db_identifier(), $args );
|
||||
$total_terms = wp_count_terms( $taxonomy->get_db_identifier(), $args );
|
||||
|
||||
if ( ! $total_terms ) {
|
||||
$total_terms = 0;
|
||||
|
|
Loading…
Reference in New Issue