Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 148

Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 266

Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home2/cargocap/mrbuilders.pk/wp-includes/widgets/upgrade/index.php on line 274
fg
/home2/cargocap/public_html/wp-content/plugins/gutenify/core/inc/extend/custom-css.php
<?php
function gutenify_block_custom_css( $block_content, $block ) {
	if ( ! empty( $block['attrs']['customCss'] ) && ! empty( $block['attrs']['blockClientId'] ) ) {
		$pattern = '/\$selector/m';
		$replacement = '.gutenify-section-' . $block['attrs']['blockClientId'];
		$custom_css = preg_replace($pattern, $replacement,  $block['attrs']['customCss'] );
		wp_add_inline_style( 'wp-block-library', $custom_css );
	}

	return $block_content;
}

add_filter( 'render_block', 'gutenify_block_custom_css', 10, 2 );