[wp-trac] [WordPress Trac] #63399: Twenty Twenty-Five: editor style isn't enqueued
WordPress Trac
noreply at wordpress.org
Thu Jun 19 18:18:01 UTC 2025
#63399: Twenty Twenty-Five: editor style isn't enqueued
-------------------------------------------------+-------------------------
Reporter: wildworks | Owner: audrasjb
Type: defect (bug) | Status: reviewing
Priority: high | Milestone: 6.8.2
Component: Bundled Theme | Version: 6.7
Severity: normal | Resolution:
Keywords: has-patch has-test-info needs- | Focuses:
testing |
-------------------------------------------------+-------------------------
Comment (by sandeepdahiya):
> Maybe it would be nice to test it using a child theme, with the
following tests:
> - Create a basic child theme and ensure the editor styles are loaded
> - Create a child theme and try to override editor styles
== Test Report
=== Description
This report validates that the indicated patch works as expected.
Patch tested:
[https://core.trac.wordpress.org/attachment/ticket/63399/63399.patch
Patch-63399]
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Firefox 139.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.0
=== Results
== Test Case 1: Load Editor Styles in Child Theme
Objective:
- Verify that add_editor_style( 'assets/css/editor-style.css' ); loads
editor styles from the child theme.
Steps:
- Created a child theme with functions.php and style.css.
- Created a file at assets/css/editor-style.css with a test background
color.
- Used add_editor_style() in functions.php to load the editor stylesheet.
- Verified from the post editor (block editor).
Actual Result:
✅ [https://ibb.co/VpCV37wT Background color] was applied in the editor as
expected. (#fffbe6).
----
== Test Case 2: Override Parent Editor Styles in Child Theme
Objective:
- Ensure the child theme's editor styles override the parent theme’s
editor styles.
Steps:
- Verified that the parent theme has background styling in its editor
style.
- Added overriding rule in the child theme editor-style.css using
!important.
- Opened the post editor and inspected styles.
Actual Result:
✅ Child theme’s styles correctly overrode the parent theme's styles.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63399#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list