Skip to content

Commit

Permalink
suggestions per CR
Browse files Browse the repository at this point in the history
  • Loading branch information
cahdeemer committed Jun 11, 2024
1 parent b8a721e commit 0f3e617
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion block-filters/heading/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { addFilter } from '@wordpress/hooks';
// import { createHigherOrderComponent } from '@wordpress/compose';

/**
* Modifies supports for Heading block.
Expand Down
2 changes: 1 addition & 1 deletion blocks/heading/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @package wp-newsletter-builder
*/

$wp_newsletter_builder_heading_color = $attributes['elColor'] ?? null;
$wp_newsletter_builder_heading_color = $attributes['elColor'] ?? '';
?>
<div style="color: <?php echo esc_attr( $wp_newsletter_builder_heading_color ); ?>;" ?>
<?php echo wp_kses_post( $content ?? '' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion blocks/list/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @package wp-newsletter-builder
*/

$wp_newsletter_builder_list_color = $attributes['elColor'] ?? null;
$wp_newsletter_builder_list_color = $attributes['elColor'] ?? '';
?>

<div style="color: <?php echo esc_attr( $wp_newsletter_builder_list_color ); ?>;" ?>
Expand Down
2 changes: 1 addition & 1 deletion blocks/paragraph/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @package wp-newsletter-builder
*/

$wp_newsletter_builder_paragraph_color = $attributes['elColor'] ?? null;
$wp_newsletter_builder_paragraph_color = $attributes['elColor'] ?? '';
?>

<div style="color: <?php echo esc_attr( $wp_newsletter_builder_paragraph_color ); ?>;" ?>
Expand Down

0 comments on commit 0f3e617

Please sign in to comment.