Fixes terms pagination

This commit is contained in:
weryques 2018-06-29 22:37:37 -03:00
parent 5dca8f3c6d
commit 54eccb3a6f
1 changed files with 1 additions and 1 deletions

View File

@ -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;