Skip to content

Commit

Permalink
Avoid using get_theme_support for drop cap
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Apr 24, 2020
1 parent 36f8165 commit b41c040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function register_block_type_from_metadata( $path, $args = array() ) {
* @return array Filtered editor settings.
*/
function gutenberg_extend_settings_drop_cap( $settings ) {
$settings['__experimentalDisableDropCap'] = get_theme_support( 'disable-drop-cap' );
$settings['__experimentalDisableDropCap'] = false;
return $settings;
}
add_filter( 'block_editor_settings', 'gutenberg_extend_settings_drop_cap' );
Expand Down

0 comments on commit b41c040

Please sign in to comment.