diff --git a/attributes-for-blocks.php b/attributes-for-blocks.php index e53644f..0df8260 100644 --- a/attributes-for-blocks.php +++ b/attributes-for-blocks.php @@ -3,7 +3,7 @@ * Plugin Name: Attributes for Blocks * Plugin URI: https://wordpress.org/plugins/attributes-for-blocks * Description: Allows to add HTML attributes to Gutenberg blocks. - * Version: 1.0.8 + * Version: 1.0.9 * Author: websevendev * Author URI: https://github.com/websevendev */ @@ -255,19 +255,26 @@ function render_block($block_content, $block) { */ function sanitize_attributes($content) { - if(!function_exists('wp_get_current_user')) { - require ABSPATH . WPINC . '/pluggable.php'; + if(strpos($content, '