Opened 14 years ago
Closed 14 years ago
#21026 closed defect (bug) (fixed)
add_editor_style() in child theme not working for editor_style.css
| Reported by: | richardwo | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4.1 |
| Component: | Editor | Version: | 3.4 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
created a child theme of twentyeleven
functions.php contains add_editor_style();
editor-style.css in the theme folder.
This file is not picked up by TinyMCE (confirmed by looking at tinyMCEPreInit in source).
Changing the name of the css file to e.g. child-editor-style.css and using add_editor_style( 'child-editor-style.css' );
works fine.
Attachments (1)
Change History (8)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In [20059], the line was introduced to prevent a stylesheet from loading by a parent theme if a file with the same name was already loaded by a child theme:
In [20342], this behaviour was reversed (comment:ticket:19437:14).
Not sure if the line was necessary in the first place. Moving to 3.4.1, as it's technically a regression.