Make WordPress Core

Opened 9 months ago

Closed 9 months ago

Last modified 9 months ago

#59304 closed enhancement (fixed)

Code quality improvements to `class-wp-theme-json`

Reported by: isabel_brison's profile isabel_brison Owned by: isabel_brison's profile isabel_brison
Milestone: 6.4 Priority: normal
Severity: normal Version: 6.4
Component: Editor Keywords: gutenberg-merge has-patch
Focuses: Cc:


This ticket tracks syncing the enhancements from the following Gutenberg PRs:

Change History (3)

This ticket was mentioned in PR #5162 on WordPress/wordpress-develop by @isabel_brison.

9 months ago

  • Keywords has-patch added

Trac ticket:

Syncs the following changes from Gutenberg:

Test by checking that preset classnames and variables are correctly output in the front end, and making sure unit tests pass.

#2 @isabel_brison
9 months ago

  • Owner set to isabel_brison
  • Resolution set to fixed
  • Status changed from new to closed

In 56545:

Editor: performance enhancements to class-wp-theme-json.

Removes unnecessary sanitisation of hardcoded strings and avoids looping over style presets without classes or variables.

Props flixos90.
Fixes #59304.

@isabel_brison commented on PR #5162:

9 months ago

Committed in r56545.

Note: See TracTickets for help on using tickets.