This plugin modifies the attributes of other blocks
-
This plugin adds some attributes to all blocks, which breaks other plugins due to incompatibility. I traced it to this block of code in tpgb_conditions_rules.php line 49:
public function register_block_for_server_side_attr(){ $registered_blocks = WP_Block_Type_Registry::get_instance()->get_all_registered(); $display_rules_options = self::tpgb_display_option(); foreach ( $registered_blocks as $name => $block ) { if (!preg_match('/\btpgb\/\b/', $name) && !preg_match('/\bstackable\/\b/', $name)) { foreach( $display_rules_options as $key => $attr){ $block->attributes[$key] = $attr; } } } }
Why is this plugin modifying blocks belonging to other plugins?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘This plugin modifies the attributes of other blocks’ is closed to new replies.