Skip to content

Commit

Permalink
Plugin: Remove wp-editor-font stylesheet override (#14176)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored and youknowriad committed Mar 6, 2019
1 parent c123fd6 commit 9b14d3f
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,27 +200,6 @@ function gutenberg_register_scripts_and_styles() {
// Editor Styles.
// This empty stylesheet is defined to ensure backward compatibility.
gutenberg_override_style( 'wp-blocks', false );
$fonts_url = '';

/*
* Translators: Use this to specify the proper Google Font name and variants
* to load that is supported by your language. Do not translate.
* Set to 'off' to disable loading.
*/
$font_family = _x( 'Noto Serif:400,400i,700,700i', 'Google Font Name and Variants', 'gutenberg' );
if ( 'off' !== $font_family ) {
$query_args = array(
'family' => urlencode( $font_family ),
);
$fonts_url = esc_url_raw( add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ) );
}

gutenberg_override_style(
'wp-editor-font',
$fonts_url,
array(),
null
);

gutenberg_override_style(
'wp-editor',
Expand Down

0 comments on commit 9b14d3f

Please sign in to comment.