Skip to content

Commit

Permalink
rename filter
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Apr 16, 2022
1 parent 179004a commit bf8f871
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ endif;
## Changelog

### 4.0.0
* add `advanced_posts_blocks_use_fallback_template` filter.
* add `advanced_posts_blocks_use_default_template` filter.

### 3.0.1
* Child Posts Block: Bug fix for post type selector.
Expand Down
2 changes: 1 addition & 1 deletion src/blocks/children/class-renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function render( array $attributes ) : string {
return $output;
}

if ( apply_filters( 'advanced_posts_blocks_use_fallback_template', true, $this->name ) ) {
if ( apply_filters( 'advanced_posts_blocks_use_default_template', true, $this->name ) ) {
$output = $this->get_content_from_default_template( $this->name );
}

Expand Down
2 changes: 1 addition & 1 deletion src/blocks/post/class-renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function render( array $attributes ) : string {
return $output;
}

if ( apply_filters( 'advanced_posts_blocks_use_fallback_template', true, $this->name ) ) {
if ( apply_filters( 'advanced_posts_blocks_use_default_template', true, $this->name ) ) {
$output = $this->get_content_from_default_template( $this->name );
}

Expand Down
2 changes: 1 addition & 1 deletion src/blocks/posts/class-renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function render( array $attributes ) : string {
return $output;
}

if ( apply_filters( 'advanced_posts_blocks_use_fallback_template', true, $this->name ) ) {
if ( apply_filters( 'advanced_posts_blocks_use_default_template', true, $this->name ) ) {
$output = $this->get_content_from_default_template( $this->name );
}

Expand Down

0 comments on commit bf8f871

Please sign in to comment.