Skip to content

Commit

Permalink
fix: deprecated WP_Webfonts() constructor takes no arguments (#66700)
Browse files Browse the repository at this point in the history
Co-authored-by: justlevine <[email protected]>
Co-authored-by: gziolo < [email protected]>
  • Loading branch information
3 people authored Dec 23, 2024
1 parent bedc00a commit d22e81b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function wp_webfonts() {
global $wp_webfonts;

if ( ! ( $wp_webfonts instanceof WP_Webfonts ) ) {
$wp_webfonts = new WP_Webfonts( wp_fonts() );
$wp_webfonts = new WP_Webfonts();
}

return $wp_webfonts;
Expand Down

1 comment on commit d22e81b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in d22e81b.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12464243559
📝 Reported issues:

Please sign in to comment.