Skip to content

Commit

Permalink
Apply filter instead of adding
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesjosh committed Nov 12, 2024
1 parent f2f1765 commit ba9d1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/blocks/class-kadence-blocks-posts-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function build_html( $attributes, $unique_id, $content, $block_instance )
* @param boolean $inline true or false based on when called.
*/
public function render_scripts( $attributes, $inline = false ) {
if ( ! class_exists( 'Kadence\Theme' ) || add_filter( 'kadence_blocks_post_block_style_force_output', '__return_false' ) ) {
if ( ! class_exists( 'Kadence\Theme' ) || apply_filters( 'kadence_blocks_post_block_style_force_output', false ) ) {
if ( ! wp_style_is( 'kadence-blocks-' . $this->block_name, 'enqueued' ) ) {
$this->enqueue_style( 'kadence-blocks-' . $this->block_name );
if ( $inline ) {
Expand Down

0 comments on commit ba9d1de

Please sign in to comment.