Skip to content

Commit

Permalink
Use _doing_it_wrong instead of trigger_error
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lende committed May 19, 2023
1 parent c7f86db commit ef60cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/class-wp-duotone-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ private static function enqueue_global_styles_preset( $filter_id, $duotone_selec
__( 'The duotone id "%s" is not registered in theme.json settings', 'gutenberg' ),
$filter_id
);
trigger_error( $error_message );
_doing_it_wrong( __METHOD__, $error_message, '6.3.0' );
return;
}
self::$used_global_styles_presets[ $filter_id ] = self::$global_styles_presets[ $filter_id ];
Expand Down

0 comments on commit ef60cd5

Please sign in to comment.