Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/class-wp-duotone-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,10 @@ public static function set_global_style_block_names() {
* @return string Filtered block content.
*/
public static function render_duotone_support( $block_content, $block ) {
if ( null === $block['blockName'] ) {
return $block_content;
}

$duotone_selector = self::get_selector( $block['blockName'] );

// The block should have a duotone attribute or have duotone defined in its theme.json to be processed.
Expand Down
Loading