Opened 3 weeks ago
Last modified 3 days ago
#66352 new task (blessed)
New default theme for WP 7.2: Ipsum.
| Reported by: | audrasjb | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 7.2 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description (last modified by )
Add the new default theme for 7.2.
Developed in https://github.com/WordPress/ipsum
Development is expected to continue in the Github repository until the 1.0 release, at which point development will move to svn.
Attachments (1)
Change History (38)
#2
in reply to: ↑ 1
@
3 weeks ago
Replying to audrasjb:
@iamarinoh @onemaggie @poena are we good to ship Ipsum?
We'll need a PR for this: who's handling it? I guess it's a task for Default Theme Dev Leads :)
We missed the timeframe for beta 1, but we need to get this in beta 2 next week, so I would like to make sure Ipsum is merged this week, a few days before 7.2 beta 2.
Sorry, I should have prepared a PR for this. I will do one asap that we can have ready for that
This ticket was mentioned in PR #14558 on WordPress/wordpress-develop by @onemaggie.
3 weeks ago
#3
- Keywords has-patch added
Imports Ipsum from https://github.com/WordPress/ipsum and makes it the default theme for WordPress 7.2.
Ipsum drops the year-based naming, and a few places only look for twenty* themes:
- The build only copies
wp-content/themes/twenty*, so Ipsum would be missing from builds and packages. - PHPCS, the PHP compatibility check and PHPStan skip it the same way. With it added, Ipsum passes all three as is.
test_default_theme_in_default_theme_list()expected atwentyprefix.
The commits can land separately, like the Twenty Twenty-Five import and its follow-up:
- The theme files from WordPress/ipsum@b3a4bca. Repository tooling and development docs stay on GitHub.
- Bundled theme conventions:
Version: 1.0,Tested up to: 7.2, the readme title and changelog entry, and a final newline in every file. These need to go back to the Ipsum repository too, so the next sync doesn't undo them. - The default theme switch. Since 6.7, the theme tests need
WP_DEFAULT_THEME,WP_Theme::$default_themes,$_new_bundled_filesand the tested themes to change together. - Build, lint and the default themes workflow.
Testing Instructions
- Open the Playground preview. Ipsum is the active theme on the new site.
- Browse the front end and open the Site Editor. Templates, parts and patterns load.
- Run
npm run test:php -- --group themes. All tests pass.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Comparing this with earlier default theme imports, preparing the commits and running the checks.
---
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
@onemaggie commented on PR #14558:
3 weeks ago
#5
@desrosj pinging you here for your knowledge with default theme stuff
@onemaggie commented on PR #14558:
3 weeks ago
#6
Props list for the theme as of today:
Props onemaggie, juanfra, poena, iamarinoh, shailu25, areziaal, josephscott, ddewan, noruzzaman, williampatton, jeffpaul, kafleg, maneshtimilsina, sakshamsharma5, soean, moonjellydigital, sheulyshila, yashjawale, maxinacube, mukesh27, nilambar, huzaifaalmesbah.
@onemaggie commented on PR #14558:
3 weeks ago
#8
For the
@font-faceand image files, is it possible to add a cache busting string to the rendered version, ie?ver=20261021, either via a filter or in theme.json? It's helpful for cache busting on sites with long caches for static files.
Thirty days or longer is pretty typical these days as lighthouse calls out shorter caching headers.
Images are versioned now. Fonts can’t be yet, because core works out the font format from the end of the URL, so .woff2?ver=1.0 gets dropped. That needs a core fix first.
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
3 weeks ago
@peterwilsoncc commented on PR #14558:
3 weeks ago
#10
I added Ipsum to the phpstan bootstrap config in https://github.com/WordPress/wordpress-develop/pull/14558/commits/b56e327fcde4d1d82c2eca07aa93009396f864ad. It's not required but I did so for consistency rather than need -- props @westonruter for advice
During the initial import of TT5, the new default theme was not added to the performance tests as they include upgrade tests from WP versions in which the theme isn't available. I will create a ticket for adding them at a later date. (I did add them for TT5 but they got reverted in r59151 / 03be079386f90df12e56e218e589bb7a27e686ef)
While making changes, I also took the liberty of merging in trunk.
@peterwilsoncc commented on PR #14558:
3 weeks ago
#11
@propsbot add westonruter
@peterwilsoncc commented on PR #14558:
3 weeks ago
#13
Merged r64677 / https://github.com/WordPress/wordpress-develop/commit/8f7616e0bce1d69afd454a8c7cab3da92ff909ab
I committed with a see reference as I gather there will be follow up commits during the release cycle.
#14
@
3 weeks ago
Should the theme repo now be archived to prevent drift?
#15
follow-up:
↓ 28
@
3 weeks ago
@peterwilsoncc It seems the assets/images and assets/fonts directories didn't get added in the SVN commit, even though they are in the PR.
This ticket was mentioned in PR #14701 on WordPress/wordpress-develop by @westonruter.
3 weeks ago
#16
Ipsum passes PHPStan at the level 5 the repository configures, but has 69 errors at level 10. This fixes all of them, so Ipsum is clean at level 10 with bleedingEdge, as Twenty Twenty-Four and Twenty Twenty-Five already are.
- Pattern image URLs. Thirteen patterns appended the theme version as a cache busting
?ver=(added in WordPress/ipsum#163 in response to review of #14558), reading it withWP_Theme::get( 'Version' ), which returnsstring|false. That accounted for 60 of the errors. A newipsum_get_asset_url()helper takes a path relative to the theme, resolves it withget_parent_theme_file_uri(), and adds the parent theme version withadd_query_arg()when it can be read. The patterns now call it. Going throughget_parent_theme_file_uri()also makes each asset URL filterable withparent_theme_file_uri, which the patterns' plainget_template_directory_uri()concatenation did not allow, and theveris added after that filter runs, so a filtered URL keeps the cache busting. - Stylesheet version.
ipsum_enqueue_styles()loads the parent theme'sstyle.cssbut versioned it with the active theme, so with a child theme active, an Ipsum update did not change the stylesheet URL. It now usesget_template(), matching the pattern images and Twenty Twenty-Four. - Comments call to action binding. The
postIdcontext is untyped and itsget_the_ID()fallback can befalse. The post is now resolved withget_post(), which falls back to the current post as before, and the callback returns null when there is none, so the block keeps its original content. The unused$source_args, which must still be accepted to reach the block instance, is unset. - Search block ARIA label support. The block supports are narrowed to an array before
ariaLabelis added. - Iterable value types for the block binding args, the template types and the block metadata.
Native types were left off the hook callbacks' parameters, since a plugin filtering in a non-array would otherwise cause a fatal error.
The theme's assets/images/ (and assets/fonts/) directories are missing from the import, so pattern images are currently broken regardless of this change. That is being addressed separately.
Trac ticket: Core-66352
Testing Instructions
- Run
vendor/bin/phpstan analyse -c phpstan.neon.dist --level=10 src/wp-content/themes/ipsum. No errors are reported, where trunk reports 68 (69 with bleedingEdge, which also reports the unused$source_args). - Activate Ipsum and insert the Gallery Offset and CTA Membership patterns in a post. Image URLs are built from the theme directory and end in
?ver=1.0. - With a child theme of Ipsum active, the
ipsum-stylestylesheet URL ends in Ipsum's version, not the child theme's. - View a single post using a template with the comments call to action. The link reads "Be the first to comment" or "Join the conversation" depending on the comment count.
- In the Site Editor, a Search block offers an ARIA label setting.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Running PHPStan at level 10, tracing the history of the ?ver= query string in the Ipsum repository, implementing the fixes under direction, and checking the changed callbacks with WP-CLI.
---
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
#18
@
3 weeks ago
After [64677] and [64678], src/wp-content/themes/ipsum/ still has no screenshot.jpg, although readme.txt (== Images ==) credits it. On trunk, Ipsum (now WP_DEFAULT_THEME) shows a blank thumbnail on Appearance → Themes.
The file exists upstream: https://github.com/WordPress/ipsum/blob/trunk/screenshot.jpg (added in https://github.com/WordPress/ipsum/pull/83), so it looks like it was missed in the sync along with the other binary assets.
#21
@
3 weeks ago
Noting a small point: Ipsum currently ships screenshot.jpg (https://github.com/WordPress/ipsum/blob/trunk/screenshot.jpg).
Recent default themes such as Twenty Twenty-Five, Twenty Twenty-Four and Twenty Twenty-Three ship screenshot.png, so it may be worth switching Ipsum for consistency, unless .jpg was chosen on purpose. I'm not sure if this matters here, so feel free to ignore it if not.
Update: I've reported this in the Ipsum repository: https://github.com/WordPress/ipsum/pull/169
#22
@
3 weeks ago
Good thing you reported it upstream.
It doesn't make a big difference, and I don't see why the "inconsistency" itself with previous themes would be something we want to fix, but worth asking the question.
This ticket was mentioned in Slack in #accessibility by ravi. View the logs.
3 weeks ago
#25
@
3 weeks ago
@westonruter Updated the ticket description to clarify when development should move off Github.
@westonruter commented on PR #14701:
3 weeks ago
#26
I'll open this as a PR against WordPress/ipsum instead, since I've learned it seems to be the canonical location for development for now, per Core-66352:
Development is expected to continue in the Github repository until the 1.0 release, at which point development will move to svn.
@westonruter commented on PR #14701:
3 weeks ago
#27
I'll open this as a PR against WordPress/ipsum instead
#28
in reply to: ↑ 15
@
3 weeks ago
Replying to westonruter:
@peterwilsoncc It seems the
assets/imagesandassets/fontsdirectories didn't get added in the SVN commit, even though they are in the PR.
Sorry about the missed binaries.
I've created WordPress/core-release-utils#15 to warn when a PR contains binaries that aren't included in diff files.
This ticket was mentioned in PR #15113 on WordPress/wordpress-develop by @onemaggie.
2 weeks ago
#29
Keeps Ipsum in core in sync with https://github.com/WordPress/ipsum. Each commit brings over one merged Ipsum PR and links it, so they can be committed together or one at a time.
Only theme files come over. Repository tooling and development docs stay on GitHub, like in the import.
Testing Instructions
- Open the Playground preview and follow the testing steps in each linked Ipsum PR.
src/wp-content/themes/ipsummatches the theme files on Ipsum'strunk.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Watching the Ipsum repository for merges and bringing each one over as a commit. Every change was reviewed in its Ipsum PR.
---
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
@onemaggie commented on PR #15113:
10 days ago
#30
I am sorry I was on holiday on Monday, but I have kept this PR to cover the sync of the work in Ipsum's repo back to core, so it would be nice if we can have it merged before the beta this week. Thank you!
@Mamaduka commented on PR #15113:
9 days ago
#32
Commited in 7a60249.
This ticket was mentioned in PR #15845 on WordPress/wordpress-develop by @onemaggie.
3 days ago
#33
WIP: This collects the Ipsum PRs merged since the last sync. It'll be committed late on Monday, November 9, or early on Tuesday, November 10, so it includes everything merged until then.
Keeps Ipsum in core in sync with https://github.com/WordPress/ipsum. Each commit brings over one merged Ipsum PR and links it, so they can be committed together or one at a time.
Only theme files come over. Repository tooling and development docs stay on GitHub, like in the import.
Ipsum PRs included so far:
- https://github.com/WordPress/ipsum/pull/187
- https://github.com/WordPress/ipsum/pull/198
- https://github.com/WordPress/ipsum/pull/180
Testing Instructions
- Open the Playground preview and follow the testing steps in each Ipsum PR above.
src/wp-content/themes/ipsummatches the theme files on Ipsum'strunk.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Watching the Ipsum repository for merges and bringing each one over as a commit. Every change was reviewed in its Ipsum PR.
---
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
@onemaggie commented on PR #15845:
3 days ago
#34
one change in this round is outside the theme folder.
WordPress/ipsum#61 adds a minified stylesheet. Core doesn't commit built CSS, so style.min.css isn't in this PR. Instead, the last commit adds Ipsum to the cssmin:themes Grunt task and ignores the built file, the same as Twenty Twenty-Two and Twenty Twenty-Five (follow-up to [60934]). build:css then makes style.min.css for Ipsum.
@onemaggie commented on PR #15845:
3 days ago
#35
Props for this round, from the Props Bot lists on the Ipsum PRs it brings over:
Props yashjawale, juanfra, ravipatel, onemaggie, wildworks, shailu25, courane01, mikachan, westonruter, josephscott, poena.
@onemaggie commented on PR #15845:
3 days ago
#36
Also, in https://github.com/WordPress/wordpress-develop/pull/15845/changes/b2da5004930e1d24333c3c339e2e192d05b68aff we are adding the tests mentioned that need to be added to core for the commit to cover WordPress/ipsum#192. If we decide to move the abilities functionality to core we can patch Ipsum in the future to remove the changes in the theme.
@iamarinoh @onemaggie @poena are we good to ship Ipsum?
We'll need a PR for this: who's handling it? I guess it's a task for Default Theme Dev Leads :)
We missed the timeframe for beta 1, but we need to get this in beta 2 next week, so I would like to make sure Ipsum is merged this week, a few days before 7.2 beta 2.