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 4, 2023
1 parent 253190d commit 82bc2c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/experimental/fonts-api/fonts-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ function wp_print_fonts( $handles = false ) {

_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );

// Automatically enqueue all user-selected fonts.
if ( false === $handles ) {
WP_Fonts_Resolver::enqueue_user_selected_fonts();
}

return $wp_fonts->do_items( $handles );
}
}
Expand Down

0 comments on commit 82bc2c7

Please sign in to comment.