diff --git a/change-log.txt b/change-log.txt index 23cf7c0..71e381e 100644 --- a/change-log.txt +++ b/change-log.txt @@ -1,3 +1,6 @@ += 1.0.27 = +* Category settings loads only 10 categories on CPT change - FIXED + = 1.0.26 = * Error on setting array option value in block editor - FIXED diff --git a/wp-super-duper.php b/wp-super-duper.php index c398723..3821a4f 100755 --- a/wp-super-duper.php +++ b/wp-super-duper.php @@ -1790,7 +1790,7 @@ public function block() { // taxonomies if( $value && 'post_type' in prev_attributes[props.id] && 'category' in prev_attributes[props.id] && run ){ - wp.apiFetch({path: "arguments['post_type']['onchange_rest']['path'])){echo $this->arguments['post_type']['onchange_rest']['path'];}else{'/wp/v2/"+$value+"/categories';} ?>"}).then(terms => { + wp.apiFetch({path: "arguments['post_type']['onchange_rest']['path'])){echo $this->arguments['post_type']['onchange_rest']['path'];}else{'/wp/v2/"+$value+"/categories/?per_page=100';} ?>"}).then(terms => { while (taxonomies_id);?>.length) { taxonomies_id);?>.pop(); }