Skip to content

Commit

Permalink
Add comment about required JS changes for __unstableType in PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lende committed Mar 24, 2023
1 parent 6bc19a9 commit a0be2bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/class-wp-duotone-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ public static function add_editor_settings( $settings ) {

$settings['styles'][] = array(
'assets' => $duotone_svgs,
// The 'svgs' type is new in 6.3 and requires the corresponding JS changes in the EditorStyles component to work.
'__unstableType' => 'svgs',
'isGlobalStyles' => false,
);
Expand Down

0 comments on commit a0be2bf

Please sign in to comment.