Skip to content

Editor: Update Google Fonts API endpoint for WordPress 7.2 - #14130

Closed
pkevan wants to merge 1 commit into
WordPress:trunkfrom
pkevan:update/google-fonts-7.2
Closed

pkevan wants to merge 1 commit into
WordPress:trunkfrom
pkevan:update/google-fonts-7.2

Conversation

@pkevan

@pkevan pkevan commented Oct 9, 2026

Copy link
Copy Markdown

Updates the default Google Fonts collection endpoint to the WordPress 7.2 versioned path on s.w.org, refreshing the bundled font collection for the 7.2 release.

This bumps the hard-coded wp-7.1 font URL path to wp-7.2 in the default google-fonts collection registration, and updates the matching preview-URL fixtures in the Font Library REST controller tests. It mirrors the change made for the 7.1 release in #12343 and for 7.0 in #64564.

  • src/wp-includes/fonts.php — font_families JSON URL for the google-fonts collection.
  • tests/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php — preview URL fixtures.
  • tests/phpunit/tests/fonts/font-library/wpRestFontFacesController.php — preview URL fixture.

The regenerated 7.2 collection was merged in WordPress/google-fonts-to-wordpress-collection#58 (1949 → 1959 font families) and is already published at https://s.w.org/images/fonts/wp-7.2/, so the new URL resolves today.

Trac ticket: https://core.trac.wordpress.org/ticket/66250

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Fable 5.1
Used for: Locating the endpoint and test references, applying the version bump following the precedent set by #12343, and running the Font Library REST tests locally. All changes were reviewed and verified by me.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

🤖 Generated with Claude Code

Bump the default `google-fonts` collection URL from the `wp-7.1` to the
`wp-7.2` versioned path on s.w.org, and update the matching preview URL
fixtures in the Font Library REST controller tests.

The regenerated 7.2 collection is published at
https://s.w.org/images/fonts/wp-7.2/ (WordPress/google-fonts-to-wordpress-collection#58).

See #66250.
@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props paulkevan, wildworks.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@t-hamano

t-hamano commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

LGTM!

  • The new font previews display correctly.
  • I can install them
  • Applying those fonts to the block renders them properly.
image image

wporg-sync pushed a commit that referenced this pull request Oct 9, 2026
Developed in: #14130

Props mikachan, mukesh27, paulkevan, peterwilsoncc, wildworks.
Fixes #66250.

git-svn-id: https://develop.svn.wordpress.org/trunk@64257 602fd350-edb4-49c9-b593-d223f7449a82
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 64257
GitHub commit: 3591842

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions Bot closed this Oct 9, 2026
wporg-sync pushed a commit to WordPress/WordPress that referenced this pull request Oct 9, 2026
Developed in: WordPress/wordpress-develop#14130

Props mikachan, mukesh27, paulkevan, peterwilsoncc, wildworks.
Fixes #66250.
Built from https://develop.svn.wordpress.org/trunk@64257


git-svn-id: http://core.svn.wordpress.org/trunk@63408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants