Skip to content

Commit

Permalink
Category settings loads only 10 categories on CPT change - FIXED
Browse files Browse the repository at this point in the history
  • Loading branch information
kprajapatii committed Jun 24, 2021
1 parent db8e5f1 commit 1c8c1d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions change-log.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion wp-super-duper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: "<?php if(isset($this->arguments['post_type']['onchange_rest']['path'])){echo $this->arguments['post_type']['onchange_rest']['path'];}else{'/wp/v2/"+$value+"/categories';} ?>"}).then(terms => {
wp.apiFetch({path: "<?php if(isset($this->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_<?php echo str_replace("-","_", $this->id);?>.length) {
taxonomies_<?php echo str_replace("-","_", $this->id);?>.pop();
}
Expand Down

0 comments on commit 1c8c1d3

Please sign in to comment.