Skip to content

Commit

Permalink
Remove "is block theme" guard.
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofromtonya committed Jul 5, 2023
1 parent 2dc8bfc commit 6200aaa
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/experimental/fonts-api/fonts-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@ function wp_fonts() {
// Initialize.
$wp_fonts->register_provider( 'local', 'WP_Fonts_Provider_Local' );
add_action( 'wp_head', 'wp_print_fonts', 50 );

/*
* For themes without a theme.json, admin printing is initiated by the 'admin_print_styles' hook.
* For themes with theme.json, admin printing is initiated by _wp_get_iframed_editor_assets().
*/
if ( ! wp_theme_has_theme_json() ) {
add_action( 'admin_print_styles', 'wp_print_fonts', 50 );
}
add_action( 'admin_print_styles', 'wp_print_fonts', 50 );
}

return $wp_fonts;
Expand Down

0 comments on commit 6200aaa

Please sign in to comment.