Skip to content

Commit

Permalink
Auto queue before printing
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofromtonya committed May 9, 2023
1 parent cf82a83 commit d9a1151
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/experimental/fonts-api/fonts-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ function wp_print_fonts( $handles = false ) {
return array();
}

// Skip this reassignment decision-making when using the default of `false`.
if ( false !== $handles ) {
if ( false === $handles ) {
// Automatically enqueue all user-selected fonts.
WP_Fonts_Resolver::enqueue_user_selected_fonts();
} else {
// When `true`, print all registered fonts for the iframed editor.
if ( $in_iframed_editor ) {
$queue = $wp_fonts->queue;
Expand Down

0 comments on commit d9a1151

Please sign in to comment.